File rip_out_unneeded_stuff.patch of Package firmwarekit
---
Makefile | 16 +++++-----------
acpicompile/Makefile | 2 +-
2 files changed, 6 insertions(+), 12 deletions(-)
--- a/Makefile
+++ b/Makefile
@@ -4,15 +4,14 @@ override CFLAGS += `pkg-config --cflags
LDFLAGS = -nostdlibs -Linitramfs/data/lib -Linitramfs/data/usr/lib -export-dynamic -lc -ldl `pkg-config --libs glib-2.0` -lnewt -lslang
-SUBDIRS = acpiinfo pciresource acpicompile cpufreq ethernet edd battery msrpoke pcipoke usbports tonetest bashshell powertop lmbench mtrr shelltools fan chk_hpet suspend thermal_trip microcode dmi os2gap apicedge maxreadreq virt ebda SUN dmar
+# Rip out lmbench, our package is in no good shape...
+# Rip out ethernet, this might mess up network in a running system and needs more SUSE adjustance...
+SUBDIRS = acpiinfo pciresource acpicompile cpufreq edd battery msrpoke pcipoke usbports tonetest bashshell powertop mtrr shelltools fan chk_hpet suspend thermal_trip microcode dmi os2gap apicedge maxreadreq virt ebda SUN dmar
LIBS = dmesg.o main.o tests.o plugins.o ui.o uri.o dumpresults.o usb.o serial.o lib.o acpitable.o dsdt.o e820.o ssh.o
all: libstandalone.so biostest subdirs
-# if arch is i*86 (i386, i686, etc.)
-ifeq ($(shell uname -m | cut -c1,3,4), i86)
-LIBC = initramfs/data/usr/lib/libc.so
-else
+ifeq ($(shell uname -m), ia64)
SUBDIRS += ia64_mce_inject
endif
@@ -23,13 +22,9 @@ subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
-biostest: $(LIBS) biostest.h .depend $(LIBC)
+biostest: $(LIBS) biostest.h .depend
gcc $(LIBS) $(LDFLAGS) -o biostest
-initramfs/data/usr/lib/libc.so:
- mkdir -p initramfs/data/usr/lib
- cp initramfs/libc.so initramfs/data/usr/lib/libc.so
-
libstandalone.so: $(LIBS) biostest.h .depend libstandalone.o
gcc --shared libstandalone.o lib.o acpitable.o e820.o -Wl,-soname=libstandalone.so -o libstandalone.so
@@ -52,7 +47,6 @@ clean_kernels: clean
rm -rf initramfs/data
cd initramfs/rpms ; make clean
cd initramfs/srpms ; make clean
- cd initramfs/kernel ; make clean
install: all
cp -a biostest results plugins initramfs/data/root/
--- a/acpicompile/Makefile
+++ b/acpicompile/Makefile
@@ -2,7 +2,7 @@ override CFLAGS += -I.. `pkg-config --cf
LDFLAGS = `pkg-config --libs glib-2.0` -L.. -lstandalone
-all: acpicompile.exe iasl acpixtract acpidump
+all: acpicompile.exe
acpicompile.exe: acpicompile.o .depend
gcc acpicompile.o $(LDFLAGS) -o acpicompile.exe