1
0

Makefile 1.3 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= cfgfs
  5. PKG_VERSION:= 1.0.8
  6. PKG_RELEASE:= 4
  7. PKG_DESCR:= compressed config filesystem
  8. PKG_SECTION:= base
  9. PKG_URL:= http://openadk.org/
  10. PKG_CFLINE_CFGFS:= select BUSYBOX_COMM@
  11. PKG_CFLINE_CFGFS+= select BUSYBOX_MD5SUM@
  12. PKG_CFLINE_CFGFS+= select BUSYBOX_XARGS@
  13. PKG_CFLINE_CFGFS+= select BUSYBOX_FEATURE_SORT_BIG@
  14. PKG_CFLINE_CFGFS+= select BUSYBOX_DIFF@
  15. PKG_CFLINE_CFGFS+= depends on !ADK_TARGET_ROOTFS_NFSROOT && !ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS
  16. PKG_DFLT_CFGFS:= y if !ADK_TOOLCHAIN_ONLY
  17. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  18. NO_DISTFILES:= 1
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,CFGFS,${PKG_NAME},${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 ${TOPDIR}/mk/pkg-bottom.mk