mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
package/qemu: fix build of host variant
The Qemu buildsystem expects that the cpp it is passed can be called like it were cc: it passes it the '-c' option, which is not allowed by cpp, but is allowed for cc. Fix that by overriding CPP when calling configure. Note: the target variant of Qemu does not build the affected parts (the PC-BIOS images). This is another problem that should be fixed separately. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
031659024b
commit
524b6b8559
@ -110,8 +110,11 @@ HOST_QEMU_OPTS += --enable-vde
|
|||||||
HOST_QEMU_DEPENDENCIES += host-vde2
|
HOST_QEMU_DEPENDENCIES += host-vde2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Override CPP, as it expects to be able to call it like it'd
|
||||||
|
# call the compiler.
|
||||||
define HOST_QEMU_CONFIGURE_CMDS
|
define HOST_QEMU_CONFIGURE_CMDS
|
||||||
cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure \
|
cd $(@D); $(HOST_CONFIGURE_OPTS) CPP="$(HOSTCC) -E" \
|
||||||
|
./configure \
|
||||||
--target-list="$(HOST_QEMU_TARGETS)" \
|
--target-list="$(HOST_QEMU_TARGETS)" \
|
||||||
--prefix="$(HOST_DIR)/usr" \
|
--prefix="$(HOST_DIR)/usr" \
|
||||||
--interp-prefix=$(STAGING_DIR) \
|
--interp-prefix=$(STAGING_DIR) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user