summaryrefslogtreecommitdiff
path: root/package/syslinux/Makefile
blob: 12a8c5d9ef894db1560ebd7f0eafc93ce056f732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		syslinux
PKG_VERSION:=		6.02
PKG_RELEASE:=		1
PKG_HASH:=		afa31b7cbf72e1c0c1752a0636ba724ce01c0e374366e46e61db6862b4685478
PKG_DESCR:=		lightweight bootloaders
PKG_SECTION:=		base/boot
HOST_BUILDDEP:=		nasm-host
PKG_URL:=		http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project
PKG_SITES:=		http://www.kernel.org/pub/linux/utils/boot/syslinux/

PKG_SUBPKGS:=		PXELINUX
PKGSD_PXELINUX:=	pxelinux

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,SYSLINUX,syslinux,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,PXELINUX,pxelinux,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

HOST_STYLE:=		manual
HOST_ALL_TARGET:=	bios installer
CONFIG_STYLE:=		manual
BUILD_STYLE:=		manual
INSTALL_STYLE:=		manual

host-build:
	(cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
		${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})

syslinux-hostinstall:
	$(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
	$(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/syslinux
	$(CP) $(WRKBUILD)/bios/core/isolinux.bin \
		$(STAGING_HOST_DIR)/usr/share/syslinux
	$(CP) $(WRKBUILD)/bios/com32/elflink/ldlinux/ldlinux.c32 \
		$(STAGING_HOST_DIR)/usr/share/syslinux

pxelinux-install:
	$(INSTALL_DIR) ${IDIR_PXELINUX}/tftpboot/pxelinux.cfg
	$(CP) $(WRKBUILD)/bios/core/pxelinux.0 \
		${IDIR_PXELINUX}/tftpboot
	$(CP) $(WRKBUILD)/bios/com32/elflink/ldlinux/ldlinux.c32 \
		${IDIR_PXELINUX}/tftpboot
	$(CP) ./files/default ${IDIR_PXELINUX}/tftpboot/pxelinux.cfg

include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk