From d1d2d0ec582c99229f27f2cfdad6c270cb5aacf9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 3 Sep 2011 21:53:22 +0000 Subject: [PATCH] pciutils: Hack to build on ARM. --- lfs/pciutils | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs/pciutils b/lfs/pciutils index e4ee727d7..893c75c50 100644 --- a/lfs/pciutils +++ b/lfs/pciutils @@ -90,6 +90,10 @@ ifeq "$(LFS_PASS)" "install" cd $(DIR_APP) && install -m 0644 lib/libpci.a /opt/$(MACHINE)-uClibc/lib cd $(DIR_APP) && install -m 0644 lib/*.h /opt/$(MACHINE)-uClibc/include/pci else +ifeq "$(MACHINE)" "arm" + cd $(DIR_APP)/lib && ./configure + cd $(DIR_APP)/lib && sed -e "s/^#error.*$$/#define CPU_ARCH_ARM/" -i config.h +endif cd $(DIR_APP) && make PREFIX=/usr $(MAKETUNING) cd $(DIR_APP) && make PREFIX=/usr install cd $(DIR_APP) && install -v -m 755 -d /usr/include/pci -- 2.39.2