Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2022 Garmin Ltd. or its subsidiaries
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0
|
||||
*
|
||||
* Attempts to find and exec the host qemu-bridge-helper program
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void try_program(char const* path, char** args) {
|
||||
if (access(path, X_OK) == 0) {
|
||||
execv(path, args);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
char* var;
|
||||
|
||||
var = getenv("QEMU_BRIDGE_HELPER");
|
||||
if (var && var[0] != '\0') {
|
||||
execvp(var, argv);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc == 2 && strcmp(argv[1], "--help") == 0) {
|
||||
fprintf(stderr, "Helper function to find and exec qemu-bridge-helper. Set QEMU_BRIDGE_HELPER to override default search path\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
try_program("/usr/libexec/qemu-bridge-helper", argv);
|
||||
try_program("/usr/lib/qemu/qemu-bridge-helper", argv);
|
||||
|
||||
fprintf(stderr, "No bridge helper found\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user