mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-07 10:27:42 +00:00
package/qemu: use autotools-package infrastructure
Turns out that, with a little bit of tweaking, we can use the autotools-package infrastructure to build QEMU. That's better than defining all the _CMDS and using the generic-package infra. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Francois Perrad <fperrad@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
a35555b331
commit
5c8b0e6166
@ -62,6 +62,9 @@ ifeq ($(HOST_QEMU_ARCH),powerpc)
|
|||||||
endif
|
endif
|
||||||
HOST_QEMU_TARGETS=$(HOST_QEMU_ARCH)-linux-user
|
HOST_QEMU_TARGETS=$(HOST_QEMU_ARCH)-linux-user
|
||||||
|
|
||||||
|
# Note: although QEMU has a ./configure script, it is not a real autotools
|
||||||
|
# package, and ./configure chokes on options such as --host or --target.
|
||||||
|
# So, provide out own _CONFIGURE_CMDS to override the defaults.
|
||||||
define HOST_QEMU_CONFIGURE_CMDS
|
define HOST_QEMU_CONFIGURE_CMDS
|
||||||
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure \
|
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure \
|
||||||
--target-list="$(HOST_QEMU_TARGETS)" \
|
--target-list="$(HOST_QEMU_TARGETS)" \
|
||||||
@ -74,19 +77,7 @@ define HOST_QEMU_CONFIGURE_CMDS
|
|||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define HOST_QEMU_BUILD_CMDS
|
$(eval $(host-autotools-package))
|
||||||
$(MAKE) -C $(@D) all
|
|
||||||
endef
|
|
||||||
|
|
||||||
define HOST_QEMU_INSTALL_CMDS
|
|
||||||
$(MAKE) -C $(@D) install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define HOST_QEMU_CLEAN_CMDS
|
|
||||||
$(MAKE) -C $(@D) clean
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(host-generic-package))
|
|
||||||
|
|
||||||
# variable used by other packages
|
# variable used by other packages
|
||||||
QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(HOST_QEMU_ARCH)
|
QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(HOST_QEMU_ARCH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user