mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
f63e5724327c890c0e5713fc102a4da1e302c587
The 0002-Update-linker-flags.patch assumes that the qemu-xen files are included in the xen source tree. However, if BR2_PACKAGE_XEN_TOOLS is not enabled, the qemu-xen dependency will not be handled and the patch will fail to apply with the following error. Fixes: build error below Applying 0002-Update-linker-flags.patch using patch: patching file tools/Makefile Hunk #1 succeeded at 36 (offset -1 lines). Hunk #2 succeeded at 185 (offset -8 lines). can't find file to patch at input line 76 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tools/qemu-xen/include/hw/xen/xen_native.h b/tools/qemu-xen/include/hw/xen/xen_native.h |index 6bcc83ba..2590904e 100644 |--- a/tools/qemu-xen/include/hw/xen/xen_native.h |+++ b/tools/qemu-xen/include/hw/xen/xen_native.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored make: *** [package/pkg-generic.mk:239: output/build/xen-4.21.1/.stamp_patched] Error 1 To avoid making BR2_PACKAGE_XEN_TOOLS a required option, fix the 0002-Update-linker-flags.patch so that modifying source from the qemu-xen package is no longer included. Instead of patching qemu-xen, a better solution is undefining the __XEN_INTERFACE_VERSION__ from the qemu-xen package. To test: BR2_aarch64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_XEN=y # BR2_PACKAGE_XEN_TOOLS is not set Signed-off-by: Neal Frager <neal.frager@amd.com> Tested-by: Matt Weber <matt@thewebers.ws> Reviewed-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at https://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches
Description
Languages
Makefile
62.3%
Python
19.2%
C
8.5%
Shell
6.1%
PHP
1.4%
Other
2.1%