Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= cfgfs
  5. PKG_VERSION:= 1.0.10
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= compressed config filesystem
  8. PKG_SECTION:= base/apps
  9. PKG_URL:= http://openadk.org/
  10. PKG_CFLINE_CFGFS:= select BUSYBOX_COMM@
  11. PKG_CFLINE_CFGFS:= select BUSYBOX_DIFF@
  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+= depends on !ADK_TARGET_ROOTFS_NFSROOT && !ADK_TARGET_ROOTFS_INITRAMFSPIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS && !ADK_TARGET_ROOTFS_JFFS2 && !ADK_TARGET_ROOTFS_SQUASHFS && !ADK_TARGET_ROOTFS_ISO
  16. PKG_DFLT_CFGFS:= y if !(ADK_TOOLCHAIN_ONLY || ADK_TOOLCHAIN_ARCHIVE || ADK_PKG_TEST)
  17. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  18. NO_DISTFILES:= 1
  19. include ${ADK_TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,CFGFS,cfgfs,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. CONFIG_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. do-install:
  24. ${INSTALL_DIR} ${IDIR_CFGFS}/sbin
  25. ${INSTALL_BIN} ${WRKBUILD}/fwcf.sh ${IDIR_CFGFS}/sbin/cfgfs
  26. ${INSTALL_BIN} ${WRKBUILD}/fwcf.helper.out \
  27. ${IDIR_CFGFS}/sbin/cfgfs.helper
  28. cd ${IDIR_CFGFS}/sbin; for tgt in halt reboot poweroff; do \
  29. ln cfgfs $$tgt; \
  30. done
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk