Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= cfgfs
  5. PKG_VERSION:= 1.0.7
  6. PKG_RELEASE:= 3
  7. PKG_DESCR:= compressed config filesystem
  8. PKG_SECTION:= base
  9. PKG_URL:= http://www.openadk.org/
  10. PKG_TARGET_DEPENDS:= alix wrap foxboard ag241 foxg20 routerboard
  11. PKG_CFLINE_CFGFS:= select BUSYBOX_COMM@
  12. PKG_CFLINE_CFGFS+= select BUSYBOX_MD5SUM@
  13. PKG_CFLINE_CFGFS+= select BUSYBOX_XARGS@
  14. PKG_CFLINE_CFGFS+= select BUSYBOX_FEATURE_SORT_BIG@
  15. PKG_CFLINE_CFGFS+= select BUSYBOX_DIFF@
  16. PKG_CFLINE_CFGFS+= depends on !ADK_TARGET_ROOTFS_NFSROOT && !ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS
  17. PKG_DFLT_CFGFS:= y
  18. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  19. NO_DISTFILES:= 1
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,CFGFS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. CONFIG_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. do-install:
  25. ${INSTALL_DIR} ${IDIR_CFGFS}/sbin
  26. ${INSTALL_BIN} ${WRKBUILD}/fwcf.sh ${IDIR_CFGFS}/sbin/cfgfs
  27. ${INSTALL_BIN} ${WRKBUILD}/fwcf.helper.out \
  28. ${IDIR_CFGFS}/sbin/cfgfs.helper
  29. cd ${IDIR_CFGFS}/sbin; for tgt in halt reboot poweroff; do \
  30. ln cfgfs $$tgt; \
  31. done
  32. include ${TOPDIR}/mk/pkg-bottom.mk