Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= syslinux
  5. PKG_VERSION:= 6.02
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 086ac1c569d226a5e2ae3d605de09a1d
  8. PKG_SITES:= http://www.kernel.org/pub/linux/utils/boot/syslinux/
  9. include ../rules.mk
  10. WRKINST:= ${WRKBUILD}/openadk_installroot
  11. install: ${STAGING_HOST_DIR}/usr/bin/extlinux ${STAGING_HOST_DIR}/usr/share/syslinux/.installed
  12. $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
  13. ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' bios installer
  14. @touch $@
  15. $(WRKBUILD)/.installed: ${WRKBUILD}/.compiled
  16. mkdir -p ${WRKINST}
  17. ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' \
  18. INSTALLROOT='${WRKINST}' \
  19. bios install
  20. @touch $@
  21. ${STAGING_HOST_DIR}/usr/bin/extlinux: $(WRKBUILD)/.installed
  22. $(INSTALL_BIN) ${WRKINST}/sbin/extlinux \
  23. ${STAGING_HOST_DIR}/usr/bin
  24. ${STAGING_HOST_DIR}/usr/share/syslinux/.installed: ${WRKBUILD}/.installed
  25. mkdir -p ${STAGING_HOST_DIR}/usr/share
  26. ${CP} ${WRKINST}/usr/share/syslinux ${STAGING_HOST_DIR}/usr/share
  27. @touch ${STAGING_HOST_DIR}/usr/share/syslinux/.installed
  28. include $(TOPDIR)/mk/tools.mk