Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= 6f275813a1b08cf852e55c0a3f8fbc78
  8. PKG_DESCR:= lightweight bootloaders
  9. PKG_SECTION:= base/boot
  10. HOST_BUILDDEP:= nasm-host
  11. PKG_URL:= http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project
  12. PKG_SITES:= http://www.kernel.org/pub/linux/utils/boot/syslinux/
  13. PKG_SUBPKGS:= PXELINUX
  14. PKGSD_PXELINUX:= pxelinux
  15. include $(TOPDIR)/mk/host.mk
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,SYSLINUX,syslinux,$(PKG_VERSION)-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,PXELINUX,pxelinux,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. HOST_STYLE:= manual
  20. HOST_ALL_TARGET:= bios installer
  21. CONFIG_STYLE:= manual
  22. BUILD_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. host-build:
  25. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  26. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  27. syslinux-hostinstall:
  28. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
  29. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/syslinux
  30. $(CP) $(WRKBUILD)/bios/core/isolinux.bin \
  31. $(STAGING_HOST_DIR)/usr/share/syslinux
  32. $(CP) $(WRKBUILD)/bios/com32/elflink/ldlinux/ldlinux.c32 \
  33. $(STAGING_HOST_DIR)/usr/share/syslinux
  34. pxelinux-install:
  35. $(INSTALL_DIR) ${IDIR_PXELINUX}/tftpboot/pxelinux.cfg
  36. $(CP) $(WRKBUILD)/bios/core/pxelinux.0 \
  37. ${IDIR_PXELINUX}/tftpboot
  38. $(CP) $(WRKBUILD)/bios/com32/elflink/ldlinux/ldlinux.c32 \
  39. ${IDIR_PXELINUX}/tftpboot
  40. $(CP) ./files/default ${IDIR_PXELINUX}/tftpboot/pxelinux.cfg
  41. include ${TOPDIR}/mk/host-bottom.mk
  42. include ${TOPDIR}/mk/pkg-bottom.mk