Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= 6
  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+= depends on !ADK_TARGET_ROOTFS_NFSROOT && !ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS
  15. PKG_DFLT_CFGFS:= y if !(ADK_TOOLCHAIN_ONLY || ADK_TOOLCHAIN_ARCHIVE || ADK_HARDWARE_QEMU)
  16. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  17. NO_DISTFILES:= 1
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,CFGFS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. do-install:
  23. ${INSTALL_DIR} ${IDIR_CFGFS}/sbin
  24. ${INSTALL_BIN} ${WRKBUILD}/fwcf.sh ${IDIR_CFGFS}/sbin/cfgfs
  25. ${INSTALL_BIN} ${WRKBUILD}/fwcf.helper.out \
  26. ${IDIR_CFGFS}/sbin/cfgfs.helper
  27. cd ${IDIR_CFGFS}/sbin; for tgt in halt reboot poweroff; do \
  28. ln cfgfs $$tgt; \
  29. done
  30. include ${TOPDIR}/mk/pkg-bottom.mk