1 #############################################################
5 #############################################################
6 PCIUTILS_VERSION
:=2.2.10
7 PCIUTILS_VERSION
:=3.0.1
8 PCIUTILS_SOURCE
:=pciutils-
$(PCIUTILS_VERSION
).
tar.gz
10 PCIUTILS_SITE
:=ftp
://atrey.karlin.mff.cuni.cz
/pub
/linux
/pci
11 PCIUTILS_DIR
:=$(BUILD_DIR
)/pciutils-
$(PCIUTILS_VERSION
)
14 PCIIDS_SITE
:=http
://pciids.sourceforge.net
/
15 PCIIDS_SOURCE
:=pci.ids.bz2
18 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
19 PCIUTILS_HAVE_ZLIB
=yes
20 PCIIDS_FILE
=pci.ids.gz
26 $(DL_DIR
)/$(PCIUTILS_SOURCE
):
27 $(WGET
) -P
$(DL_DIR
) $(PCIUTILS_SITE
)/$(PCIUTILS_SOURCE
)
29 $(DL_DIR
)/$(PCIIDS_SOURCE
):
30 $(WGET
) -P
$(DL_DIR
) $(PCIIDS_SITE
)/$(PCIIDS_SOURCE
)
32 $(PCIUTILS_DIR
)/.unpacked
: $(DL_DIR
)/$(PCIUTILS_SOURCE
) $(DL_DIR
)/$(PCIIDS_SOURCE
)
33 $(PCIUTILS_CAT
) $(DL_DIR
)/$(PCIUTILS_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
34 $(PCIIDS_CAT
) $(DL_DIR
)/$(PCIIDS_SOURCE
) > $(PCIUTILS_DIR
)/$(PCIIDS_FILE
)
35 toolchain
/patch-kernel.sh
$(PCIUTILS_DIR
) package
/pciutils pciutils-
$(PCIUTILS_VERSION
)\
*.patch
36 #$(CONFIG_UPDATE) $(@D)
37 $(SED
) 's/uname -s/echo Linux/' \
38 -e
's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
39 $(PCIUTILS_DIR
)/lib
/configure
42 $(PCIUTILS_DIR
)/.compiled
: $(PCIUTILS_DIR
)/.unpacked
43 $(MAKE1
) CC
="$(TARGET_CC)" OPT
="$(TARGET_CFLAGS)" -C
$(PCIUTILS_DIR
) \
44 SHAREDIR
="/usr/share/misc" \
45 ZLIB
=$(PCIUTILS_HAVE_ZLIB
) \
49 $(TARGET_DIR
)/sbin
/lspci
: $(PCIUTILS_DIR
)/.compiled
50 $(INSTALL
) $(PCIUTILS_DIR
)/lspci
$(TARGET_DIR
)/sbin
/lspci
51 $(STRIPCMD
) $(STRIP_STRIP_ALL
) $@
53 $(TARGET_DIR
)/sbin
/setpci
: $(PCIUTILS_DIR
)/.compiled
54 $(INSTALL
) $(PCIUTILS_DIR
)/setpci
$(TARGET_DIR
)/sbin
/setpci
55 $(STRIPCMD
) $(STRIP_STRIP_ALL
) $@
57 $(TARGET_DIR
)/usr
/share
/misc
/$(PCIIDS_FILE
): $(PCIUTILS_DIR
)/.unpacked
58 $(INSTALL
) -D
$(PCIUTILS_DIR
)/$(PCIIDS_FILE
) $(@D
)
60 pciutils
: uclibc
$(TARGET_DIR
)/sbin
/setpci
$(TARGET_DIR
)/sbin
/lspci
$(TARGET_DIR
)/usr
/share
/misc
/$(PCIIDS_FILE
)
62 pciutils-source
: $(DL_DIR
)/$(PCIUTILS_SOURCE
) $(DL_DIR
)/$(PCIIDS_SOURCE
)
65 -$(MAKE
) -C
$(PCIUTILS_DIR
) clean
66 rm -f
$(TARGET_DIR
)/sbin
/lspci
$(TARGET_DIR
)/sbin
/setpci
$(TARGET_DIR
)/usr
/share
/misc
/pci.ids
*
69 rm -rf
$(PCIUTILS_DIR
)
71 #############################################################
73 # Toplevel Makefile options
75 #############################################################
76 ifeq ($(BR2_PACKAGE_PCIUTILS
),y
)