Browse Source

added host build for dnsmasq

Signed-off-by: Joerg Seitter <joerg.seitter@stz-gab.de>
Joerg Seitter 10 years ago
parent
commit
9fa71a106f
1 changed files with 10 additions and 0 deletions
  1. 10 0
      package/dnsmasq/Makefile

+ 10 - 0
package/dnsmasq/Makefile

@@ -18,15 +18,25 @@ PKGFD_PXE:=		enable pxe network boot
 PKGFS_PXE:=		pxelinux
 PKGFS_PXE:=		pxelinux
 PKGFB_PXE:=		syslinux
 PKGFB_PXE:=		syslinux
 
 
+include ${ADK_TOPDIR}/mk/host.mk
 include ${ADK_TOPDIR}/mk/package.mk
 include ${ADK_TOPDIR}/mk/package.mk
 
 
+$(eval $(call HOST_template,DNSMASQ,dnsmasq,${PKG_VERSION}-${PKG_RELEASE}))
 $(eval $(call PKG_template,DNSMASQ,dnsmasq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 $(eval $(call PKG_template,DNSMASQ,dnsmasq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 
+HOST_STYLE:=		manual
 CONFIG_STYLE:=		manual
 CONFIG_STYLE:=		manual
 
 
+host-build:
+	cd ${WRKBUILD} && make	
+
+dnsmasq-hostinstall:
+	(cd $(WRKBUILD); make PREFIX=${STAGING_HOST_DIR}/usr install)
+
 dnsmasq-install:
 dnsmasq-install:
 	${INSTALL_DIR} ${IDIR_DNSMASQ}/usr/sbin ${IDIR_DNSMASQ}/etc
 	${INSTALL_DIR} ${IDIR_DNSMASQ}/usr/sbin ${IDIR_DNSMASQ}/etc
 	${INSTALL_BIN} ${WRKINST}/usr/sbin/dnsmasq ${IDIR_DNSMASQ}/usr/sbin
 	${INSTALL_BIN} ${WRKINST}/usr/sbin/dnsmasq ${IDIR_DNSMASQ}/usr/sbin
 	${INSTALL_DATA} ./files/dnsmasq.conf ${IDIR_DNSMASQ}/etc/dnsmasq.conf
 	${INSTALL_DATA} ./files/dnsmasq.conf ${IDIR_DNSMASQ}/etc/dnsmasq.conf
 
 
+include ${ADK_TOPDIR}/mk/host-bottom.mk
 include ${ADK_TOPDIR}/mk/pkg-bottom.mk
 include ${ADK_TOPDIR}/mk/pkg-bottom.mk