diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-13 13:41:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-13 13:45:18 +0200 |
commit | e4444fd7564e31f7bb00b66682ef932519a3c1e1 (patch) | |
tree | 3a2a3b62435259a6c4c55988736f35a925334ef1 /package/syslinux | |
parent | 8ef3a1254c0be613a7e44e7ebf99f1d6e679b48b (diff) |
add pxe feature to dnsmasq
Diffstat (limited to 'package/syslinux')
-rw-r--r-- | package/syslinux/Makefile | 17 | ||||
-rw-r--r-- | package/syslinux/files/default | 4 | ||||
-rw-r--r-- | package/syslinux/patches/patch-MCONFIG | 19 | ||||
-rw-r--r-- | package/syslinux/patches/patch-MCONFIG_build | 12 | ||||
-rw-r--r-- | package/syslinux/patches/patch-com32_lib_MCONFIG | 27 |
5 files changed, 19 insertions, 60 deletions
diff --git a/package/syslinux/Makefile b/package/syslinux/Makefile index 00168274b..aca09091a 100644 --- a/package/syslinux/Makefile +++ b/package/syslinux/Makefile @@ -6,22 +6,27 @@ include $(TOPDIR)/rules.mk PKG_NAME:= syslinux PKG_VERSION:= 6.02 PKG_RELEASE:= 1 -PKG_MD5SUM:= 1df6ff6e4a82b9d7d71a9e7cb5851a5f +PKG_MD5SUM:= 6f275813a1b08cf852e55c0a3f8fbc78 PKG_DESCR:= lightweight bootloaders PKG_SECTION:= 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_CFLINE_SYSLINUX:= depends on ADK_HOST_ONLY +PKG_SUBPKGS:= PXELINUX +PKGSD_PXELINUX:= pxelinux include $(TOPDIR)/mk/host.mk include $(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} \ @@ -35,5 +40,13 @@ syslinux-hostinstall: $(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 ${TOPDIR}/mk/host-bottom.mk include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/syslinux/files/default b/package/syslinux/files/default new file mode 100644 index 000000000..0cfa8d03a --- /dev/null +++ b/package/syslinux/files/default @@ -0,0 +1,4 @@ +DEFAULT x86 +PROMPT 0 +LABEL x86 + KERNEL kernel diff --git a/package/syslinux/patches/patch-MCONFIG b/package/syslinux/patches/patch-MCONFIG deleted file mode 100644 index fec7d2644..000000000 --- a/package/syslinux/patches/patch-MCONFIG +++ /dev/null @@ -1,19 +0,0 @@ ---- syslinux-4.03.orig/MCONFIG 2010-10-20 21:25:38.000000000 +0200 -+++ syslinux-4.03/MCONFIG 2011-01-22 00:19:37.688658635 +0100 -@@ -39,14 +39,14 @@ UPX = upx - - CHMOD = chmod - --CC = gcc -+CC ?= gcc - gcc_ok = $(shell tmpf=gcc_ok.$$$$.tmp; \ - if $(CC) $(GCCOPT) $(1) -c $(topdir)/dummy.c \ - -o $$tmpf 2>/dev/null ; \ - then echo '$(1)'; else echo '$(2)'; fi; \ - rm -f $$tmpf) - --LD = ld -+LD ?= ld - OBJDUMP = objdump - OBJCOPY = objcopy - AR = ar diff --git a/package/syslinux/patches/patch-MCONFIG_build b/package/syslinux/patches/patch-MCONFIG_build deleted file mode 100644 index 792d179f1..000000000 --- a/package/syslinux/patches/patch-MCONFIG_build +++ /dev/null @@ -1,12 +0,0 @@ ---- syslinux-4.03.orig/MCONFIG.build 2010-10-20 21:25:38.000000000 +0200 -+++ syslinux-4.03/MCONFIG.build 2011-01-22 00:21:14.348658474 +0100 -@@ -18,7 +18,8 @@ include $(topdir)/MCONFIG - - OPTFLAGS = -g -Os - INCLUDES = --CFLAGS = -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \ -+CFLAGS ?= -+CFLAGS += -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \ - $(OPTFLAGS) $(INCLUDES) - LDFLAGS = - LIBS = diff --git a/package/syslinux/patches/patch-com32_lib_MCONFIG b/package/syslinux/patches/patch-com32_lib_MCONFIG deleted file mode 100644 index 4e7f72c8e..000000000 --- a/package/syslinux/patches/patch-com32_lib_MCONFIG +++ /dev/null @@ -1,27 +0,0 @@ ---- syslinux-4.03.orig/com32/lib/MCONFIG 2010-10-20 21:25:38.000000000 +0200 -+++ syslinux-4.03/com32/lib/MCONFIG 2011-01-22 00:29:01.978658237 +0100 -@@ -11,10 +11,10 @@ GCCOPT += $(call gcc_ok,-fPIE,-fPIC) - GCCOPT += $(call gcc_ok,-fno-exceptions,) - GCCOPT += $(call gcc_ok,-fno-asynchronous-unwind-tables,) - GCCOPT += $(call gcc_ok,-fno-strict-aliasing,) --GCCOPT += $(call gcc_ok,-falign-functions=0,-malign-functions=0) --GCCOPT += $(call gcc_ok,-falign-jumps=0,-malign-jumps=0) --GCCOPT += $(call gcc_ok,-falign-labels=0,-malign-labels=0) --GCCOPT += $(call gcc_ok,-falign-loops=0,-malign-loops=0) -+GCCOPT += $(call gcc_ok,-falign-functions=0,) -+GCCOPT += $(call gcc_ok,-falign-jumps=0,) -+GCCOPT += $(call gcc_ok,-falign-labels=0,) -+GCCOPT += $(call gcc_ok,-falign-loops=0,) - GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=2,) - - INCLUDE = -I. -@@ -37,7 +37,8 @@ OPTFLAGS = -Os -march=i386 -falign-func - -falign-labels=0 -ffast-math -fomit-frame-pointer - WARNFLAGS = $(GCCWARN) -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline - --CFLAGS = $(OPTFLAGS) $(REQFLAGS) $(WARNFLAGS) $(LIBFLAGS) -+CFLAGS ?= -+CFLAGS += $(OPTFLAGS) $(REQFLAGS) $(WARNFLAGS) $(LIBFLAGS) - LDFLAGS = -m elf32_i386 - - .SUFFIXES: .c .o .a .so .lo .i .S .s .ls .ss .lss |