Makefile 964 B

12345678910111213141516171819202122232425262728293031323334
  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.6
  6. PKG_RELEASE:= 3
  7. PKG_DESCR:= compressed config filesystem
  8. PKG_SECTION:= base
  9. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  10. NO_DISTFILES:= 1
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,CFGFS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. BUILD_STYLE:= auto
  14. do-configure:
  15. mkdir -p ${WRKBUILD}
  16. ${CP} ./src/* ${WRKBUILD}
  17. ${TARGET_CC} ${TCPPFLAGS} ${TCFLAGS} -o ${WRKBUILD}/mtd ${WRKBUILD}/mtd.c
  18. do-install:
  19. ${INSTALL_DIR} ${IDIR_CFGFS}/sbin
  20. ${INSTALL_BIN} ${WRKBUILD}/fwcf.sh ${IDIR_CFGFS}/sbin/cfgfs
  21. ${INSTALL_BIN} ${WRKBUILD}/fwcf.helper.out ${IDIR_CFGFS}/sbin/cfgfs.helper
  22. ifeq ($(ARCH),cris)
  23. ${INSTALL_BIN} ${WRKBUILD}/mtd ${IDIR_CFGFS}/sbin/mtd
  24. endif
  25. include ${TOPDIR}/mk/pkg-bottom.mk