OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # OpenWrt Package for building Qemu on the host to be used during the |
| 3 | # compilation of weird packages that need a target environment for certain |
| 4 | # build steps (like Emacs). |
| 5 | # |
| 6 | # Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de> |
| 7 | # |
| 8 | # License GPLv2 or later. NO WARRANTY. |
| 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/rules.mk |
| 12 | |
| 13 | PKG_NAME:=qemu-host |
| 14 | PKG_VERSION:=0.14.1 |
| 15 | PKG_RELEASE:=1 |
| 16 | PKG_SOURCE:=qemu-$(PKG_VERSION).tar.gz |
| 17 | PKG_MD5SUM:=b6c713a8db638e173af53a62d5178640 |
| 18 | PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/qemu/ |
| 19 | HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/qemu-$(PKG_VERSION) |
| 20 | PKG_BUILD_DIR:=$(BUILD_DIR)/qemu-$(PKG_VERSION) |
| 21 | HOST_BUILD_PARALLEL := 1 |
| 22 | |
| 23 | include $(INCLUDE_DIR)/host-build.mk |
| 24 | include $(INCLUDE_DIR)/package.mk |
| 25 | |
| 26 | define Package/qemu-host |
| 27 | SECTION:=lang |
| 28 | CATEGORY:=Languages |
| 29 | TITLE:=Qemu user-space emulation for the host |
| 30 | URL:=http://www.qemu.org |
| 31 | DEPENDS:=+qemu-host/host |
| 32 | MAINTAINER=David Kuehling <dvdkhlng TA gmx TOD de> |
| 33 | endef |
| 34 | |
| 35 | define Package/qemu-host/description |
| 36 | Qemu emulator for the toolchain dummy package. Enable this package just to |
| 37 | force compilation of qemu-host. |
| 38 | |
| 39 | You don\'t need to enable this package to build packages that rely on qemu |
| 40 | during build-time. Instead just add \'+qemu-host/host\' to the |
| 41 | PKG_BUILD_DEPENDS line of your package. |
| 42 | endef |
| 43 | |
| 44 | ## |
| 45 | ## Compile for the host |
| 46 | ## |
| 47 | |
| 48 | HOST_CONFIGURE_VARS = |
| 49 | |
| 50 | HOST_CONFIGURE_ARGS = \ |
| 51 | --cc=$(HOSTCC) \ |
| 52 | --prefix=$(STAGING_DIR_HOST) \ |
| 53 | --extra-cflags="$(HOST_CFLAGS) $(HOST_CPPFLAGS)" \ |
| 54 | --extra-ldflags="$(HOST_LDFLAGS)" \ |
| 55 | --sysconfdir=$(STAGING_DIR_HOST)/etc \ |
| 56 | --disable-sdl \ |
| 57 | --disable-werror \ |
| 58 | --audio-drv-list= \ |
| 59 | --disable-curses \ |
| 60 | --disable-check-utests \ |
| 61 | --disable-bluez \ |
| 62 | --disable-kvm \ |
| 63 | --disable-system \ |
| 64 | --disable-user \ |
| 65 | --enable-linux-user |
| 66 | |
| 67 | |
| 68 | |
| 69 | define Host/Configure |
| 70 | $(call Host/Configure/Default) |
| 71 | endef |
| 72 | |
| 73 | define Host/Compile |
| 74 | $(call Host/Compile/Default) |
| 75 | endef |
| 76 | |
| 77 | define Host/Install |
| 78 | $(call Host/Install/Default) |
| 79 | endef |
| 80 | |
| 81 | ## |
| 82 | ## Compile for the target |
| 83 | ## |
| 84 | |
| 85 | # nothing to target-compile; everything done during host-compile step |
| 86 | define Package/qemu-host/compile |
| 87 | endef |
| 88 | |
| 89 | define Package/qemu-host/install |
| 90 | endef |
| 91 | |
| 92 | $(eval $(call HostBuild)) |
| 93 | $(eval $(call BuildPackage,qemu-host)) |
| 94 | |
| 95 | # The following comments configure the Emacs editor. Just ignore them. |
| 96 | # Local Variables: |
| 97 | # compile-command: "make -C ~/h/src/qi/openwrt-xburst package/qemu-host/compile -j2 V=99" |
| 98 | # End: |
| 99 |
