1 ################################################################################
5 ################################################################################
7 PCIUTILS_VERSION
= 3.5.2
8 PCIUTILS_SITE
= $(BR2_KERNEL_MIRROR
)/software
/utils
/pciutils
9 PCIUTILS_SOURCE
= pciutils-
$(PCIUTILS_VERSION
).
tar.xz
10 PCIUTILS_INSTALL_STAGING
= YES
11 PCIUTILS_LICENSE
= GPLv2
+
12 PCIUTILS_LICENSE_FILES
= COPYING
13 PCIUTILS_MAKE_OPTS
= \
15 HOST
="$(KERNEL_ARCH)-linux" \
16 OPT
="$(TARGET_CFLAGS)" \
17 LDFLAGS
="$(TARGET_LDFLAGS)" \
18 RANLIB
=$(TARGET_RANLIB
) \
22 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
23 PCIUTILS_DEPENDENCIES
+= udev
24 PCIUTILS_MAKE_OPTS
+= HWDB
=yes
26 PCIUTILS_MAKE_OPTS
+= HWDB
=no
29 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
30 PCIUTILS_MAKE_OPTS
+= ZLIB
=yes
31 PCIUTILS_DEPENDENCIES
+= zlib
33 PCIUTILS_MAKE_OPTS
+= ZLIB
=no
36 ifeq ($(BR2_PACKAGE_KMOD
),y
)
37 PCIUTILS_DEPENDENCIES
+= kmod
38 PCIUTILS_MAKE_OPTS
+= LIBKMOD
=yes
40 PCIUTILS_MAKE_OPTS
+= LIBKMOD
=no
43 ifeq ($(BR2_STATIC_LIBS
),y
)
44 PCIUTILS_MAKE_OPTS
+= SHARED
=no
46 PCIUTILS_MAKE_OPTS
+= SHARED
=yes
49 # Build after busybox since it's got a lightweight lspci
50 ifeq ($(BR2_PACKAGE_BUSYBOX
),y
)
51 PCIUTILS_DEPENDENCIES
+= busybox
54 define PCIUTILS_CONFIGURE_CMDS
55 $(SED
) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR
)/update-pciids.sh
56 $(SED
) 's/uname -s/echo Linux/' \
57 -e
's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
58 $(PCIUTILS_DIR
)/lib
/configure
59 $(SED
) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR
)/Makefile
62 define PCIUTILS_BUILD_CMDS
63 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(PCIUTILS_MAKE_OPTS
) \
67 define PCIUTILS_INSTALL_TARGET_CMDS
68 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
) $(PCIUTILS_MAKE_OPTS
) \
69 PREFIX
=$(TARGET_DIR
)/usr SBINDIR
=$(TARGET_DIR
)/usr
/bin \
70 install install-lib install-pcilib
73 define PCIUTILS_INSTALL_STAGING_CMDS
74 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
) $(PCIUTILS_MAKE_OPTS
) \
75 PREFIX
=$(STAGING_DIR
)/usr SBINDIR
=$(STAGING_DIR
)/usr
/bin \
76 install install-lib install-pcilib
79 $(eval
$(generic-package
))