--- etherboot-5.4.4.orig/debian/README.source +++ etherboot-5.4.4/debian/README.source @@ -0,0 +1,37 @@ +Package Repositories +-------------------- + +Backports for the current stable debian distribution as well as snapshots of +unreleased versions may be available in repositories listed on the maintainers +homepage. The current URL of the maintainer homepage can be seen in +debian/copyright. + + +Source Access +------------- + +You can obtain the sources of this package with: + + $ apt-get source ${PACKAGE} + +whereas '${PACKAGE}' has to be replaced with the actual name of the package. + +This package is maintained with the Git version control system. The current git +source tree can be obtained with: + + $ git clone ${GIT_URI} + +whereas '${GIT_URI}' has to be replaced with the actual URI for the Git +repository. The current Git URI can be seen in debian/control in the extracted +package sources. + +More information about Git can be found in the git-core package. + +This package may use the Quilt patch system to manage all modifications to the +upstream source. Changes, if any, are stored in the source package as diffs in +debian/diff and are applied during the build. Current modifications can be +applied to the source tree with: + + $ QUILT_PATCHES=debian/patches quilt push -a + +More information about Quilt can be found in the quilt package. --- etherboot-5.4.4.orig/debian/etherboot.docs +++ etherboot-5.4.4/debian/etherboot.docs @@ -0,0 +1 @@ +RELNOTES --- etherboot-5.4.4.orig/debian/changelog +++ etherboot-5.4.4/debian/changelog @@ -0,0 +1,201 @@ +etherboot (5.4.4-1ubuntu1.1) lucid-proposed; urgency=low + + * debian/rules: symlink the kvm-pxe roms to /usr/share/qemu, LP: #570870 + + -- Dustin Kirkland Mon, 03 May 2010 11:40:08 +0000 + +etherboot (5.4.4-1ubuntu1) lucid; urgency=low + + * Merge from debian unstable, remaining changes: + - Add kvm-pxe package containing the PXE ROM's kvm needs to pxeboot. + - debian/rules: unexport LDFLAGS and CFLAGS to avoid a FTBFS + - nossp.patch: compile using -fno-stack-protector. + * Discarded changes: + - Add quilt to build system. (integrated in Debian) + - genisoimage.patch: Replace all references to mkisofs to geniosimage. + (integrated in Debian) + - virtio.patch: Add virtio-net driver. (integrated upstream) + * debian/control: + - Added build dependency on grub (grub-legacy is not yet in Ubuntu) + - Added build dependency on syslinux (syslinux-common is not yet in Ubuntu) + + -- Fabrice Coutadeur Sat, 02 Jan 2010 07:25:53 +0100 + +etherboot (5.4.4-1) unstable; urgency=low + + * New maintainer, taking over package from Risko with thanks for all his past + work on it. + * Acknowledge previous NMU (Closes: #479170). + * New upstream release: + - license of cs89x0.{c,h,txt} was clarified, therefore the upstream tarball + does not need to be repackaged anymore. + - does not include documentation anymore, was moved to website only. + * Redone debian packaging from scratch. + + -- Daniel Baumann Wed, 16 Dec 2009 07:22:46 +0100 + +etherboot (5.4.3+dfsg-0.3) unstable; urgency=low + + * Non-maintainer upload. + * Add to src/util/genlise the ability to detect proper version of GNU + mtools, fix FTBFS. Patch from Daniel Schepler. (Closes: #521920) + * Change build dep on grub from "grub" to "grub-legacy": with the + transition to GRUB 2, the file /usr/lib/grub/*/stage2_eltorito (needed + to build etherboot) is now shipped by the -legacy package. Fix FTBFS. + + -- Stefano Zacchiroli Fri, 25 Sep 2009 11:18:18 +0200 + +etherboot (5.4.3+dfsg-0.2ubuntu2) karmic; urgency=low + + * detect_mtools_4.0.patch: add correct detection of Mtools > 0.4. Patch taken + from Debian (thanks Stefano Zacchiroli) + + -- Fabrice Coutadeur Sat, 10 Oct 2009 07:19:12 +0000 + +etherboot (5.4.3+dfsg-0.2ubuntu1) jaunty; urgency=low + + * Merge from debian unstable, remaining changes: + - Add quilt to build system. + - Add kvm-pxe package containing the PXE ROM's kvm needs to pxeboot. + - virtio.patch: Add virtio-net driver. + - genisoimage.patch: Replace all references to mkisofs to geniosimage. + - nossp.patch: compile using -fno-stack-protector. + + -- Soren Hansen Wed, 05 Nov 2008 13:39:00 +0100 + +etherboot (5.4.3+dfsg-0.2) unstable; urgency=low + + * Non-maintainer upload. + * Define _undi_call as noinline (closes: #474918) + + -- Jan Lübbe Tue, 05 Aug 2008 17:41:15 +0200 + +etherboot (5.4.3+dfsg-0.1ubuntu2) intrepid; urgency=low + + * Add quilt to build system. + * Add kvm-pxe package containing the PXE ROM's kvm needs to pxeboot. + * virtio.patch: Add virtio-net driver. + * undi-asm.patch: Fix FTBFS caused by toolchain changes. + + -- Soren Hansen Fri, 04 Jul 2008 15:22:12 +0200 + +etherboot (5.4.3+dfsg-0.1ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - Replace all references to mkisofs to geniosimage. + - src/Config: compile using -fno-stack-protector. Fixes FTBFS. + - Modify maintainer value to match maintainer spec. + + -- Chuck Short Fri, 20 Jun 2008 13:48:34 -0500 + +etherboot (5.4.3+dfsg-0.1) unstable; urgency=low + + * Non-maintainer upload + * New upstream release (repacked tarball for docs and license patch) + - Apply patch from upstream's git repositiory to explain a license issue + (closes: #456411, #456413) + * Update debian/copyright + * Change arch to all (closes: #471206, #471337) + - The netboot server's architecture could be different from the client's + - Emulators for i386 and amd64 need these images + + -- Jan Lübbe Sat, 03 May 2008 14:26:03 +0200 + +etherboot (5.4.2-1.2ubuntu1) hardy; urgency=low + + * Merge from Debian unstable. Remaining Ubuntu changes: + - replace all references to mkisofs to genisoimage. + - src/Config: compile using -fno-stack-protector. Fixes FTBFS + - Modify Maintainer value to match the DebianMaintainerField specification. + + -- Albin Tonnerre Tue, 11 Dec 2007 23:41:25 +0100 + +etherboot (5.4.2-1.2) unstable; urgency=high + + * NMU + * Fix FTBFS on amd64: add missing build-dependency on gcc-multilib. + (Closes: #451417) + + -- Aurélien GÉRÔME Sun, 02 Dec 2007 01:27:10 +0100 + +etherboot (5.4.2-1.1ubuntu2) gutsy; urgency=low + + * replace all references to mkisofs to genisoimage. + + -- Reinhard Tartler Thu, 20 Sep 2007 15:19:28 +0200 + +etherboot (5.4.2-1.1ubuntu1) gutsy; urgency=low + + * src/Config: compile using -fno-stack-protector. Fixes FTBFS + * Modify Maintainer value to match the DebianMaintainerField specification. + + -- Albin Tonnerre Fri, 10 Aug 2007 09:16:07 +0200 + +etherboot (5.4.2-1.1) unstable; urgency=low + + * NMU + * Grub's files have moved to /usr/lib, update build process. + Closes: #393044 + + -- Joey Hess Sat, 14 Oct 2006 23:20:24 -0400 + +etherboot (5.4.2-1) unstable; urgency=low + + * new upstream version + * mtools version & amd64 dependency fix (closes: #358124, #361230) + * added contrib/ dir to usr/share/doc (closes: #344856) + * added grub hack from Robert Millan, thanks (closes: #290521) + + -- RISKO Gergely Tue, 30 May 2006 17:38:24 +0200 + +etherboot (5.4.1-1) unstable; urgency=low + + * New upstream release (closes: #325196) + * amd64 support & gcc-4.0 fixes, 2nd try ;) (closes: #326869, #265919, #319561) + + -- RISKO Gergely Thu, 17 Nov 2005 20:06:07 +0100 + +etherboot (5.3.14-1) unstable; urgency=high + + * New upstream release (closes: #290525) + * amd64 support added (closes: #265919) + + -- RISKO Gergely Sat, 19 Mar 2005 21:15:17 +0100 + +etherboot (5.2.5-2) unstable; urgency=low + + * really fix 260744, I'm a moron, sorry. + + -- RISKO Gergely Mon, 9 Aug 2004 15:12:29 +0200 + +etherboot (5.2.5-1) unstable; urgency=low + + * reduce installation size with gzipping everything (closes: #255829) + * stop bashism in debian/rules (closes: #264237) + * fixing .liso problem with 8.3 names (closes: #260744) + * new upstream version + + -- RISKO Gergely Sun, 8 Aug 2004 19:09:42 +0200 + +etherboot (5.2.4-2) unstable; urgency=low + + * add dependency on syslinux (closes: #253623) + * Section: doc added to the doc package + + -- RISKO Gergely Thu, 10 Jun 2004 21:48:49 +0200 + +etherboot (5.2.4-1) unstable; urgency=low + + * New upstream release (closes: #250006) + * New package: etherboot-doc for documentation. + * changed included binaries for 5.2.4 conformance, now + we have: zdsk, dsk, zrom, rom, iso, liso, zlilo, lilo, + zpxe, pxe, com, elf + + -- RISKO Gergely Thu, 20 May 2004 17:39:07 +0200 + +etherboot (5.0.10-1) unstable; urgency=low + + * Initial Release. (closes: #127423) + + -- RISKO Gergely Thu, 17 Jul 2003 15:06:18 +0200 --- etherboot-5.4.4.orig/debian/compat +++ etherboot-5.4.4/debian/compat @@ -0,0 +1 @@ +7 --- etherboot-5.4.4.orig/debian/rules +++ etherboot-5.4.4/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +unexport LDFLAGS +unexport CFLAGS + +%: + dh ${@} --with quilt + +override_dh_auto_clean: + $(MAKE) -C src clean + + rm -f debian/all-in-one.iso + +override_dh_auto_build: + $(MAKE) -C src alldsks allzdsks allroms allzroms allisos alllisos allzlilos alllilos allzpxes allpxes allcoms allelfs + + # $(MAKE) -C src bin/etherboot-pci.* doesn't work from now (5.3.14). Use grub hack instead. + sh debian/local/grub-hack + +override_dh_auto_install: + mkdir -p debian/etherboot/usr/lib/etherboot + cp src/bin/*.com src/bin/*.zdsk src/bin/*.dsk src/bin/*.zpxe src/bin/*.pxe src/bin/*.zlilo src/bin/*.lilo src/bin/*.zrom src/bin/*.rom src/bin/*.iso src/bin/*.liso src/bin/*.elf debian/all-in-one.iso debian/etherboot/usr/lib/etherboot + + gzip -9 debian/etherboot/usr/lib/etherboot/* + chmod a-x debian/etherboot/usr/lib/etherboot/* + + mkdir -p $(CURDIR)/debian/kvm-pxe/usr/share/kvm + cp src/bin/e1000-82540em.zrom $(CURDIR)/debian/kvm-pxe/usr/share/kvm/pxe-e1000.bin + cp src/bin/rtl8029.zrom $(CURDIR)/debian/kvm-pxe/usr/share/kvm/pxe-ne2k_pci.bin + cp src/bin/pcnet32.zrom $(CURDIR)/debian/kvm-pxe/usr/share/kvm/pxe-pcnet.bin + cp src/bin/rtl8139.zrom $(CURDIR)/debian/kvm-pxe/usr/share/kvm/pxe-rtl8139.bin + cp src/bin/virtio-net.zrom $(CURDIR)/debian/kvm-pxe/usr/share/kvm/pxe-virtio.bin + chmod -x $(CURDIR)/debian/kvm-pxe/usr/share/kvm/* + mkdir -p $(CURDIR)/debian/kvm-pxe/usr/share/qemu + cd $(CURDIR)/debian/kvm-pxe/usr/share/qemu; ln -s ../kvm/*.bin .; cd - + mkdir -p debian/etherboot/usr/share/doc/etherboot + + cp -a contrib debian/etherboot/usr/share/doc/etherboot + + rm -f debian/etherboot/usr/share/doc/etherboot/contrib/bochs/.cvsignore + rm -f debian/etherboot/usr/share/doc/etherboot/contrib/compressor/COPYING + rm -f debian/etherboot/usr/share/doc/etherboot/contrib/mini-slamd/COPYING + +override_dh_install_changelogs: + dh_installchangelogs LOG --- etherboot-5.4.4.orig/debian/copyright +++ etherboot-5.4.4/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by RISKO Gergely on +Thu, 17 Jul 2003 15:06:18 +0200. + +It was downloaded from http://www.etherboot.org/ + +Upstream Authors: Ken Yap and Markus Gutschke. + +Copyright (C) 2003-2008 The Etherboot Project and many others + +License: + In general gPXE files are licensed under the GPL. GPLed files are in + general either from Linux or have been explicitly put under GPL by the + authors. The license for a file is usually documented at the top of + the file. + + A few files are inherited from FreeBSD netboot and therefore can be + used under BSD or GPL. Documented in this file are some of the + non-GPL'ed files. If the internal documentation for a file disagrees + with what is documented in this file, the internal documentation for + the file shall be override this file. + +File Copyright status +src/core/misc.c BSD +src/drivers/net/3c509.c BSD +src/drivers/net/3c509.h BSD +src/drivers/net/3c595.c BSD +src/drivers/net/3c595.h BSD +src/drivers/net/3c90x.c Open Source +src/drivers/net/epic100.c None +src/drivers/net/epic100.h None +src/drivers/net/ns8390.c BSD +src/drivers/net/ns8390.h BSD +src/arch/i386/include/bits/string.h None (Public Domain) + +On Debian systems, the complete text of the GPL license can be found in +`/usr/share/common-licenses/GPL' and the complete text of the BSD license +can be found in `/usr/share/common-licenses/BSD'. --- etherboot-5.4.4.orig/debian/control +++ etherboot-5.4.4/debian/control @@ -0,0 +1,35 @@ +Source: etherboot +Section: admin +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Syslinux Maintainers +Uploaders: Daniel Baumann +Build-Depends: + debhelper (>= 7.0.50~), gcc-multilib [amd64], genisoimage, grub-legacy | grub, + libc6-dev-i386 [amd64], mtools, syslinux-common | syslinux, quilt (>= 0.46-7) +Standards-Version: 3.8.3 +Homepage: http://www.etherboot.org/ +Vcs-Browser: http://git.debian-maintainers.org/?p=syslinux/etherboot.git +Vcs-Git: git://git.debian-maintainers.org/git/syslinux/etherboot.git + +Package: etherboot +Section: admin +Architecture: all +Depends: ${misc:Depends} +Recommends: mknbi +Description: Bootstrapping for various network adapters + Etherboot is a free software package for making boot ROMS for booting Linux and + other operating systems on x86 PCs over a network using Internet Protocols, + i.e. bootp/DHCP and tftp. + +Package: kvm-pxe +Architecture: all +Depends: ${misc:Depends} +Description: PXE ROM's for KVM + Etherboot is a free software package for making boot ROMS for booting + Linux and other operating systems on x86 PCs over a network using + Internet Protocols, i.e. bootp/DHCP and tftp. + . + This package contains PXE ROM's made especially to pxeboot kvm vm's. + + --- etherboot-5.4.4.orig/debian/etherboot.links +++ etherboot-5.4.4/debian/etherboot.links @@ -0,0 +1 @@ +/usr/lib/etherboot /usr/share/etherboot --- etherboot-5.4.4.orig/debian/source/format +++ etherboot-5.4.4/debian/source/format @@ -0,0 +1 @@ +1.0 --- etherboot-5.4.4.orig/debian/patches/series +++ etherboot-5.4.4/debian/patches/series @@ -0,0 +1,6 @@ +01-genisoimage.patch +02-isolinux.patch +03-mtools.patch +04-undi.patch +05-conglomeration.patch +nossp.patch --- etherboot-5.4.4.orig/debian/patches/02-isolinux.patch +++ etherboot-5.4.4/debian/patches/02-isolinux.patch @@ -0,0 +1,11 @@ +Author: Daniel Baumann +Description: Set path to isolinux.bin. + +diff -Naurp etherboot.orig/src/arch/i386/Config etherboot/src/arch/i386/Config +--- etherboot.orig/src/arch/i386/Config 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/arch/i386/Config 2009-12-16 06:40:58.000000000 +0000 +@@ -129,3 +129,4 @@ endif + + # An alternate location for isolinux.bin can be set here + # ISOLINUX_BIN=/path/to/isolinux.bin ++ISOLINUX_BIN=/usr/lib/syslinux/isolinux.bin --- etherboot-5.4.4.orig/debian/patches/04-undi.patch +++ etherboot-5.4.4/debian/patches/04-undi.patch @@ -0,0 +1,19 @@ +Author: Jan Luebbe +Description: Define _undi_call as noinline (Closes: #474918). + +diff -Naurp etherboot.orig/src/arch/i386/drivers/net/undi.c etherboot/src/arch/i386/drivers/net/undi.c +--- etherboot.orig/src/arch/i386/drivers/net/undi.c 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/arch/i386/drivers/net/undi.c 2009-12-16 07:03:46.000000000 +0000 +@@ -388,8 +388,12 @@ static int hunt_undi_rom ( void ) { + /* Make a real-mode UNDI API call to the UNDI routine at + * routine_seg:routine_off, passing in three uint16 parameters on the + * real-mode stack. ++ * ++ * We tell gcc not to inline this function, because we get multiple ++ * definitions of rm_undi_call if gcc decides to inline it. + */ + ++__attribute__ ((noinline)) + static PXENV_EXIT_t _undi_call ( uint16_t routine_seg, + uint16_t routine_off, uint16_t st0, + uint16_t st1, uint16_t st2 ) { --- etherboot-5.4.4.orig/debian/patches/03-mtools.patch +++ etherboot-5.4.4/debian/patches/03-mtools.patch @@ -0,0 +1,19 @@ +Author: Daniel Schepler +Description: + Add to src/util/genlise the ability to detect proper version of GNU mtools, fix + FTBFS (Closes: #521920). + +diff -Naurp etherboot.orig/src/util/genliso etherboot/src/util/genliso +--- etherboot.orig/src/util/genliso 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/util/genliso 2009-12-16 06:47:27.000000000 +0000 +@@ -20,8 +20,8 @@ case $# in + exit 1 + ;; + esac +-case "`mtools -V`" in +-Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.[1-9][0-9]*|Mtools\ version\ 4.*) ++case "`mtools -V | head -n 1`" in ++Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|Mtools\ version\ 4.*|mtools\ \(GNU\ mtools\)\ 4.*) + ;; + *) + echo Mtools version 3.9.9 or later is required --- etherboot-5.4.4.orig/debian/patches/05-conglomeration.patch +++ etherboot-5.4.4/debian/patches/05-conglomeration.patch @@ -0,0 +1,72 @@ +Author: n/a +Description: n/a + +diff -Naurp etherboot.orig/src/Config etherboot/src/Config +--- etherboot.orig/src/Config 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/Config 2009-12-16 07:08:14.000000000 +0000 +@@ -486,14 +486,14 @@ CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT + # CFLAGS+= -DNORELOCATE + + # you should normally not need to change these +-HOST_CC= gcc +-CPP= gcc -E -Wp,-Wall ++HOST_CC= gcc -m32 ++CPP= gcc -m32 -E -Wp,-Wall + RM= rm -f + TOUCH= touch + PERL= /usr/bin/perl +-CC= gcc +-AS= as +-LD= ld ++CC= gcc -m32 ++AS= as --32 ++LD= ld -melf_i386 + SIZE= size + AR= ar + RANLIB= ranlib +diff -Naurp etherboot.orig/src/Makefile etherboot/src/Makefile +--- etherboot.orig/src/Makefile 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/Makefile 2009-12-16 07:08:14.000000000 +0000 +@@ -10,6 +10,15 @@ endif + MAKEDEPS:= + SUFFIXES:= + ++ifeq "$(ARCH)" "x86_64" ++ARCH:=i386 ++ARCH_ORIG:=x86_64 ++endif ++ + include Config + include arch/$(ARCH)/Config + include Makefile.main ++ ++ifeq "$(ARCH_ORIG)" "x86_64" ++CFLAGS+= -DCONFIG_X86_64 ++endif +diff -Naurp etherboot.orig/src/arch/i386/Config etherboot/src/arch/i386/Config +--- etherboot.orig/src/arch/i386/Config 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/arch/i386/Config 2009-12-16 07:07:44.000000000 +0000 +@@ -117,9 +117,11 @@ else + CFLAGS+= -falign-jumps=1 -falign-loops=1 -falign-functions=1 + endif + GCC_MINORVERSION = $(word 2, $(GCC_VERSION)) ++ifeq ($(GCC_MAJORVERSION),3) + ifneq ($(GCC_MINORVERSION),4) + CFLAGS+= -mcpu=i386 + endif ++endif + + LDFLAGS+= -N + +diff -Naurp etherboot.orig/src/arch/i386/firmware/pcbios/basemem.c etherboot/src/arch/i386/firmware/pcbios/basemem.c +--- etherboot.orig/src/arch/i386/firmware/pcbios/basemem.c 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/arch/i386/firmware/pcbios/basemem.c 2009-12-16 07:06:42.000000000 +0000 +@@ -222,7 +222,7 @@ void forget_base_memory ( void *ptr, siz + * entity (if we can detect that it has done so) so that we get the + * chance to free up our own blocks. + */ +-static void free_unused_base_memory ( void ) { ++void free_unused_base_memory ( void ) { + free_base_memory_block_t *free_block = NULL; + + /* Try to release memory back to the BIOS. Free all --- etherboot-5.4.4.orig/debian/patches/01-genisoimage.patch +++ etherboot-5.4.4/debian/patches/01-genisoimage.patch @@ -0,0 +1,25 @@ +Author: Daniel Baumann +Description: Use genisoimage rather than mkisofs. + +diff -Naurp etherboot.orig/src/util/geniso etherboot/src/util/geniso +--- etherboot.orig/src/util/geniso 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/util/geniso 2009-12-16 06:44:25.000000000 +0000 +@@ -52,5 +52,5 @@ do + echo "" KERNEL $g + cp -p $f $dir/$g + done >> $cfg +-mkisofs -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir ++genisoimage -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir + rm -fr $dir +diff -Naurp etherboot.orig/src/util/genliso etherboot/src/util/genliso +--- etherboot.orig/src/util/genliso 2008-09-26 22:33:35.000000000 +0000 ++++ etherboot/src/util/genliso 2009-12-16 06:44:12.000000000 +0000 +@@ -79,7 +79,7 @@ case "$genfdimg" in + 1) + ;; + *) +- mkisofs -o $out -c boot.cat -b boot.img $dir ++ genisoimage -o $out -c boot.cat -b boot.img $dir + ;; + esac + rm -fr $dir --- etherboot-5.4.4.orig/debian/patches/nossp.patch +++ etherboot-5.4.4/debian/patches/nossp.patch @@ -0,0 +1,12 @@ +Index: etherboot-5.4.3+dfsg/src/Config +=================================================================== +--- etherboot-5.4.3+dfsg.orig/src/Config 2008-11-05 13:40:14.278907758 +0100 ++++ etherboot-5.4.3+dfsg/src/Config 2008-11-05 13:40:16.198906319 +0100 +@@ -501,6 +501,7 @@ + + CFLAGS+= -Os -ffreestanding + CFLAGS+= -Wall -W -Wno-format ++CFLAGS+= -fno-stack-protector + CFLAGS+= $(EXTRA_CFLAGS) + ASFLAGS+= $(EXTRA_ASFLAGS) + LDFLAGS+= $(EXTRA_LDFLAGS) --- etherboot-5.4.4.orig/debian/local/grub-hack +++ etherboot-5.4.4/debian/local/grub-hack @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +mkdir -p debian/tmp/root/boot/grub + +cp src/bin/*.zlilo debian/tmp/root/ + +cat > debian/tmp/root/boot/grub/menu.lst << EOF +root (cd) +EOF + +(cd debian/tmp/root && for i in *.zlilo ; do \ + j=`echo $i | sed -e "s/\.zlilo$//g"` ; \ + cat >> boot/grub/menu.lst << EOF + +title $j +kernel /$i +EOF +done) + +cp /usr/lib/grub/*-*/stage2_eltorito debian/tmp/root/boot/grub/ + +genisoimage \ + -b boot/grub/stage2_eltorito \ + -no-emul-boot -boot-load-size 4 -boot-info-table \ + -o debian/all-in-one.iso \ + -r debian/tmp/root