Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.10
  6. PKG_RELEASE:= 1
  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_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_INITRAMFS_PIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS && !ADK_TARGET_ROOTFS_JFFS2 && !ADK_TARGET_ROOTFS_SQUASHFS
  16. PKG_DFLT_CFGFS:= y if !(ADK_TOOLCHAIN_ONLY || ADK_TOOLCHAIN_ARCHIVE)
  17. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  18. NO_DISTFILES:= 1
  19. include ${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. TARGET_LDFLAGS+= -static-libgcc
  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