Change-Id: I800bbb456836b5cfb14958e2498c43c17efd4d55
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4278
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,32 @@ |
| 0 |
+From ca745cdfc27b83b6bcef9f856d858a68c64429de Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From: Peter Jones <pjones@redhat.com> |
|
| 2 |
+Date: Tue, 8 Apr 2014 15:28:12 -0400 |
|
| 3 |
+Subject: [PATCH] Add "install-all target" to top side of HAVE_FIRMWARE. |
|
| 4 |
+ |
|
| 5 |
+--- |
|
| 6 |
+ Makefile | 10 ++++++++++ |
|
| 7 |
+ 1 file changed, 10 insertions(+) |
|
| 8 |
+ |
|
| 9 |
+diff --git a/Makefile b/Makefile |
|
| 10 |
+index b472945..6606d31 100644 |
|
| 11 |
+--- a/Makefile |
|
| 12 |
+@@ -275,6 +275,16 @@ efi64: |
|
| 13 |
+ FIRMWARE=EFI64 FWCLASS=EFI \ |
|
| 14 |
+ $(MAKECMDGOALS) |
|
| 15 |
+ |
|
| 16 |
++install-all: |
|
| 17 |
++ |
|
| 18 |
++install: |
|
| 19 |
++ |
|
| 20 |
++netinstall: |
|
| 21 |
++ |
|
| 22 |
++clean: |
|
| 23 |
++ |
|
| 24 |
++all: |
|
| 25 |
++ |
|
| 26 |
+ else # FIRMWARE |
|
| 27 |
+ |
|
| 28 |
+ all: all-local subdirs |
|
| 29 |
+-- |
|
| 30 |
+2.5.5 |
| 0 | 31 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,62 @@ |
| 0 |
+%global security_hardening none |
|
| 1 |
+Summary: Simple kernel loader which boots from a FAT filesystem |
|
| 2 |
+Name: syslinux |
|
| 3 |
+Version: 6.04 |
|
| 4 |
+Release: 1%{?dist}
|
|
| 5 |
+License: GPLv2+ |
|
| 6 |
+URL: http://www.syslinux.org |
|
| 7 |
+Group: Applications/System |
|
| 8 |
+Vendor: VMware, Inc. |
|
| 9 |
+Distribution: Photon |
|
| 10 |
+Source0: https://www.kernel.org/pub/linux/utils/boot/%{name}/Testing/%{version}/%{name}-%{version}-pre1.tar.xz
|
|
| 11 |
+Patch0: 0001-Add-install-all-target-to-top-side-of-HAVE_FIRMWARE.patch |
|
| 12 |
+BuildRequires: nasm |
|
| 13 |
+BuildRequires: util-linux-devel |
|
| 14 |
+Requires: util-linux |
|
| 15 |
+ |
|
| 16 |
+%define sha1 syslinux=599b7a85d522b1b6658a1fe290e4d23dc64b1470 |
|
| 17 |
+%description |
|
| 18 |
+SYSLINUX is a suite of bootloaders, currently supporting DOS FAT |
|
| 19 |
+filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots |
|
| 20 |
+(PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX). It also includes a tool, |
|
| 21 |
+MEMDISK, which loads legacy operating systems from these media. |
|
| 22 |
+ |
|
| 23 |
+%package devel |
|
| 24 |
+Summary: Headers and libraries for syslinux development. |
|
| 25 |
+Group: Development/Libraries |
|
| 26 |
+Provides: %{name}-static = %{version}-%{release}
|
|
| 27 |
+%description devel |
|
| 28 |
+Headers and libraries for syslinux development. |
|
| 29 |
+ |
|
| 30 |
+%prep |
|
| 31 |
+%setup -q -n %{name}-%{version}-pre1
|
|
| 32 |
+%patch0 -p1 |
|
| 33 |
+%build |
|
| 34 |
+make bios clean all |
|
| 35 |
+%install |
|
| 36 |
+make bios install-all \ |
|
| 37 |
+ INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
|
|
| 38 |
+ LIBDIR=%{_prefix}/lib DATADIR=%{_datadir} \
|
|
| 39 |
+ MANDIR=%{_mandir} INCDIR=%{_includedir} \
|
|
| 40 |
+ LDLINUX=ldlinux.c32 |
|
| 41 |
+rm -rf %{buildroot}/boot
|
|
| 42 |
+rm -rf %{buildroot}/tftpboot
|
|
| 43 |
+# remove it unless provide perl(Crypt::PasswdMD5) |
|
| 44 |
+rm %{buildroot}/%{_bindir}/md5pass
|
|
| 45 |
+# remove it unless provide perl(Digest::SHA1) |
|
| 46 |
+rm %{buildroot}/%{_bindir}/sha1pass
|
|
| 47 |
+%files |
|
| 48 |
+%defattr(-,root,root) |
|
| 49 |
+%{_bindir}/*
|
|
| 50 |
+%{_sbindir}/*
|
|
| 51 |
+%{_datadir}/*
|
|
| 52 |
+%exclude %{_datadir}/syslinux/com32
|
|
| 53 |
+%exclude %{_libdir}/debug
|
|
| 54 |
+ |
|
| 55 |
+%files devel |
|
| 56 |
+%defattr(-,root,root) |
|
| 57 |
+%{_datadir}/syslinux/com32/*
|
|
| 58 |
+ |
|
| 59 |
+%changelog |
|
| 60 |
+* Tue Oct 17 2017 Alexey Makhalov <amakhalov@vmware.com> 6.04-1 |
|
| 61 |
+- Initial version |