mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
package/qemu: do not use autotools for qemu
Although QEMU has a ./configure script, it is not an autotools-package, so switch to providing build and install commands, and to using generic-package. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
66215ffc6d
commit
fb7a26cbb7
@ -59,22 +59,26 @@ 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)" \
|
||||||
--prefix="$(HOST_DIR)/usr" \
|
--prefix="$(HOST_DIR)/usr" \
|
||||||
--interp-prefix=$(STAGING_DIR) \
|
--interp-prefix=$(STAGING_DIR) \
|
||||||
--cc="$(HOSTCC)" \
|
--cc="$(HOSTCC)" \
|
||||||
--host-cc="$(HOSTCC)" \
|
--host-cc="$(HOSTCC)" \
|
||||||
--extra-cflags="$(HOST_CFLAGS)" \
|
--extra-cflags="$(HOST_CFLAGS)" \
|
||||||
--extra-ldflags="$(HOST_LDFLAGS)" \
|
--extra-ldflags="$(HOST_LDFLAGS)"
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(host-autotools-package))
|
define HOST_QEMU_BUILD_CMDS
|
||||||
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define HOST_QEMU_INSTALL_CMDS
|
||||||
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install
|
||||||
|
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