1
0

Makefile 878 B

123456789101112131415161718192021222324252627282930313233
  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:= mkimage
  5. PKG_VERSION:= 0.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1b7a781fb4cf8938842279bd3e8ee852
  8. PKG_DESCR:= stripped down mkimage utility
  9. PKG_SECTION:= misc
  10. NO_DISTFILES:= 1
  11. PKG_CFLINE_MKIMAGE:= depends on ADK_HOST_ONLY
  12. include $(TOPDIR)/mk/host.mk
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call HOST_template,MKIMAGE,mkimage,$(PKG_VERSION)-${PKG_RELEASE}))
  15. HOST_STYLE:= manual
  16. host-build:
  17. $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o ${WRKBUILD}/mkimage ${WRKBUILD}/mkimage.c ${WRKBUILD}/crc32.c
  18. mkimage-hostinstall:
  19. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  20. ${INSTALL_BIN} ${WRKBUILD}/mkimage \
  21. ${STAGING_HOST_DIR}/usr/bin
  22. include ${TOPDIR}/mk/host-bottom.mk
  23. include ${TOPDIR}/mk/pkg-bottom.mk