mirror of
https://git.yoctoproject.org/poky
synced 2026-04-15 21:32:13 +02:00
grub2.inc: dont export TARGET_CFLAGS etc to grub2 configure
The grub2 configure script uses variables such as TARGET_CFLAGS etc for its own purposes. Remove the OE versions from the configure environment to avoid conflicts. (From OE-Core rev: 58a79e6bf7d8c6ec03581f14fb83da0eeb526cc6) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
97a3322229
commit
576587dae0
@@ -44,10 +44,16 @@ PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[grub-mount] = "--enable-grub-mount,--disable-grub-mount,fuse"
|
||||
PACKAGECONFIG[device-mapper] = "--enable-device-mapper,--disable-device-mapper,lvm2"
|
||||
|
||||
do_configure_prepend() {
|
||||
# The grub2 configure script uses variables such as TARGET_CFLAGS etc
|
||||
# for its own purposes. Remove the OE versions from the environment to
|
||||
# avoid conflicts.
|
||||
unset TARGET_CPPFLAGS TARGET_CFLAGS TARGET_CXXFLAGS TARGET_LDFLAGS
|
||||
}
|
||||
|
||||
# grub and grub-efi's sysroot/${datadir}/grub/grub-mkconfig_lib are
|
||||
# conflicted, remove it since no one uses it.
|
||||
SYSROOT_PREPROCESS_FUNCS_class-target += "remove_sysroot_mkconfig_lib"
|
||||
remove_sysroot_mkconfig_lib() {
|
||||
rm -r "${SYSROOT_DESTDIR}${datadir}/grub/grub-mkconfig_lib"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user