Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= qemu
  5. PKG_VERSION:= 1.7.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 9541063d999cf9659ed7fdce71314f31
  8. PKG_DESCR:= cpu and system emulator
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= zlib glib
  11. PKG_BUILDDEP:= gettext-tiny libiconv-tiny
  12. PKG_BUILDDEP+= zlib glib
  13. HOST_BUILDDEP:= glib-host
  14. PKG_URL:= http://wwww.qemu.org/
  15. PKG_SITES:= http://wiki.qemu.org/download/
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. PKG_ARCH_DEPENDS:= x86 x86_64
  18. include $(TOPDIR)/mk/host.mk
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call HOST_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE}))
  21. $(eval $(call PKG_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  23. TARGET_CFLAGS+= -DF_EXLCK=4 -DF_SHLCK=8 -D__SIGRTMIN=32 -D__SIGRTMAX=\(NSIG-1\)
  24. endif
  25. CONFIG_STYLE:= minimal
  26. CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
  27. --cross-prefix=$(GNU_TARGET_NAME)- \
  28. --prefix=/usr \
  29. --sysconfdir=/etc \
  30. --enable-kvm \
  31. --disable-docs \
  32. --disable-sdl \
  33. --bindir=/usr/bin
  34. CFLAGS_FOR_BUILD+= -DNATIVE
  35. HOST_STYLE:= manual
  36. HOST_CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
  37. --prefix=${STAGING_HOST_DIR}/usr \
  38. --disable-docs \
  39. --disable-werror \
  40. --disable-system \
  41. --disable-sdl
  42. host-configure:
  43. cd ${WRKBUILD}; rm -f config.{cache,status}; \
  44. env ${HOST_CONFIGURE_ENV} \
  45. ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
  46. ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
  47. host-build:
  48. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  49. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
  50. qemu-hostinstall:
  51. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  52. ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
  53. qemu-install:
  54. $(INSTALL_DIR) $(IDIR_QEMU)/usr/share/qemu
  55. $(INSTALL_DIR) $(IDIR_QEMU)/usr/bin
  56. $(INSTALL_BIN) $(WRKINST)/usr/bin/qemu* \
  57. $(IDIR_QEMU)/usr/bin
  58. $(CP) $(WRKINST)/usr/share/qemu/* \
  59. $(IDIR_QEMU)/usr/share/qemu
  60. include ${TOPDIR}/mk/host-bottom.mk
  61. include ${TOPDIR}/mk/pkg-bottom.mk