mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
qemu: fix build of target variant
Similar to what was done in commit 524b6b85595274ca13bd7d01adb61ce2dddd786c for the host variant, this commit fixes the build of qemu's host variant. Qemu expects that the cpp it is passed behave like cc: it passes the -c option, which is not allowed by cpp, but is allowed for cc. Fix that by overriding CPP when calling configure. Fixes: http://autobuild.buildroot.net/results/0850e80ba62294397b44d8adea197a244a9a8205/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
50db688e38
commit
6307081554
@ -196,11 +196,14 @@ else
|
|||||||
QEMU_OPTS += --disable-fdt
|
QEMU_OPTS += --disable-fdt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Override CPP, as it expects to be able to call it like it'd
|
||||||
|
# call the compiler.
|
||||||
define QEMU_CONFIGURE_CMDS
|
define QEMU_CONFIGURE_CMDS
|
||||||
( cd $(@D); \
|
( cd $(@D); \
|
||||||
LIBS='$(QEMU_LIBS)' \
|
LIBS='$(QEMU_LIBS)' \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
$(TARGET_CONFIGURE_ARGS) \
|
||||||
|
CPP="$(TARGET_CC) -E" \
|
||||||
$(QEMU_VARS) \
|
$(QEMU_VARS) \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user