# Main Makefile for SYSLINUX
#
-all_firmware := bios efi32 efi64
+all_firmware := bios
#
# topdir is only set when we are doing a recursive make. Do a bunch of
rm -f *.so *.o wrapper
find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \
xargs -0r rm -f
- $(topdir)/efi/clean-gnu-efi.sh $(EFI_SUBARCH) $(objdir)
+ -$(topdir)/efi/clean-gnu-efi.sh $(EFI_SUBARCH) $(objdir)
clean: tidy
$(LIBEFI):
@echo Building gnu-efi for $(EFI_SUBARCH)
- $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir)
+ $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir) \
+ || $(topdir)/efi/build-gnu-efi.sh $(EFI_SUBARCH) $(objdir)
+
%.o: %.S # Cancel old rule
+# -*- rpm -*-
Summary: Kernel loader which uses a FAT, ext2/3 or iso9660 filesystem or a PXE network
Name: syslinux
Version: 6.03
%build
cp %{SOURCE1001} .
-make CC='%{my_cc}' %{?_smp_mflags} clean
-make CC='%{my_cc}' %{?_smp_mflags}
+#touch efi/tiny
+#make CC='%{my_cc}' %{?_smp_mflags} clean
+touch efi/tiny
+make CC='%{my_cc}' -j1 \
+ all_firmware=bios
%install
rm -rf %{buildroot}
-make CC='%{my_cc}' install-all \
+
+make \
+ CC='%{my_cc}' install \
INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
LIBDIR=%{_libdir} DATADIR=%{_datadir} \
MANDIR=%{_mandir} INCDIR=%{_includedir} \
- TFTPBOOT=/var/lib/tftpboot EXTLINUXDIR=/boot/extlinux
+ TFTPBOOT=/var/lib/tftpboot EXTLINUXDIR=/boot/extlinux \
+ all_firmware=bios
%clean
rm -rf %{buildroot}
%manifest syslinux.manifest
%defattr(-,root,root)
%{_sbindir}/extlinux
-/boot/extlinux
+#/boot/extlinux
%files tftpboot
%manifest syslinux.manifest
%defattr(-,root,root)
-/var/lib/tftpboot
+#/var/lib/tftpboot
%post extlinux
# If we have a /boot/extlinux.conf file, assume extlinux is our bootloader