mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
pciutils: convert to the generic-tools infrastructure
Signed-off-by: Thomas Brandstetter <thomas.brandstetter@me.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
237f5a8520
commit
7874370907
6
CHANGES
6
CHANGES
@ -15,9 +15,9 @@
|
|||||||
Updated/fixed packages: busybox, dnsmasq, dosfstools,
|
Updated/fixed packages: busybox, dnsmasq, dosfstools,
|
||||||
e2fsprogs, fbv, freetype, iperf, iptables, iw, less,
|
e2fsprogs, fbv, freetype, iperf, iptables, iw, less,
|
||||||
libaio,libdrm, libgcrypt, libglib2, libpng, libxml2, matchbox,
|
libaio,libdrm, libgcrypt, libglib2, libpng, libxml2, matchbox,
|
||||||
mdadm, memstat, mesa3d, mtd-utils, nano, openssl, php, pixman,
|
mdadm, memstat, mesa3d, mtd-utils, nano, openssl, pciutils,
|
||||||
pppd, pthread-stubs, qt, radvd, setserial, squashfs,
|
php, pixman, pppd, pthread-stubs, qt, radvd, setserial,
|
||||||
usb_modeswith, wget, xdriver_xf86-video-intel,
|
squashfs, usb_modeswith, wget, xdriver_xf86-video-intel,
|
||||||
xkeyboard-config, xlib_libX11, xlib_libXfont,
|
xkeyboard-config, xlib_libX11, xlib_libXfont,
|
||||||
xlib_libXfontcache, xlib_libXxf86misc, xlib_libpciaccess,
|
xlib_libXfontcache, xlib_libXxf86misc, xlib_libpciaccess,
|
||||||
xproto_dri2proto, xproto_eviext, xproto_fontcacheproto,
|
xproto_dri2proto, xproto_eviext, xproto_fontcacheproto,
|
||||||
|
@ -1,80 +1,40 @@
|
|||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# pciutils
|
# PCIUTILS
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
PCIUTILS_VERSION:=3.0.1
|
|
||||||
PCIUTILS_SOURCE:=pciutils-$(PCIUTILS_VERSION).tar.gz
|
|
||||||
PCIUTILS_CAT:=$(ZCAT)
|
|
||||||
PCIUTILS_SITE:=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
|
||||||
PCIUTILS_DIR:=$(BUILD_DIR)/pciutils-$(PCIUTILS_VERSION)
|
|
||||||
|
|
||||||
# Yet more targets...
|
|
||||||
PCIIDS_SITE:=http://pciids.sourceforge.net/
|
|
||||||
PCIIDS_SOURCE:=pci.ids.bz2
|
|
||||||
PCIIDS_CAT:=$(BZCAT)
|
|
||||||
|
|
||||||
|
PCIUTILS_VERSION = 3.1.7
|
||||||
|
PCIUTILS_SITE = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
||||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||||
PCIUTILS_HAVE_ZLIB=yes
|
PCIUTILS_ZLIB=yes
|
||||||
PCIIDS_FILE=pci.ids.gz
|
|
||||||
PCIIDS_COMPRESSOR=gzip -9 -c
|
|
||||||
else
|
else
|
||||||
PCIUTILS_HAVE_ZLIB=no
|
PCIUTILS_ZLIB=no
|
||||||
PCIIDS_FILE=pci.ids
|
|
||||||
PCIIDS_COMPRESSOR=cat
|
|
||||||
endif
|
endif
|
||||||
|
PCIUTILS_DNS=no
|
||||||
|
PCIUTILS_SHARED=yes
|
||||||
|
|
||||||
$(DL_DIR)/$(PCIUTILS_SOURCE):
|
define PCIUTILS_CONFIGURE_CMDS
|
||||||
$(call DOWNLOAD,$(PCIUTILS_SITE),$(PCIUTILS_SOURCE))
|
|
||||||
|
|
||||||
$(DL_DIR)/$(PCIIDS_SOURCE):
|
|
||||||
$(call DOWNLOAD,$(PCIIDS_SITE),$(PCIIDS_SOURCE))
|
|
||||||
|
|
||||||
$(PCIUTILS_DIR)/.unpacked: $(DL_DIR)/$(PCIUTILS_SOURCE) $(DL_DIR)/$(PCIIDS_SOURCE)
|
|
||||||
$(PCIUTILS_CAT) $(DL_DIR)/$(PCIUTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
$(PCIIDS_CAT) $(DL_DIR)/$(PCIIDS_SOURCE) | $(PCIIDS_COMPRESSOR) > $(PCIUTILS_DIR)/$(PCIIDS_FILE)
|
|
||||||
toolchain/patch-kernel.sh $(PCIUTILS_DIR) package/pciutils pciutils-$(PCIUTILS_VERSION)\*.patch
|
|
||||||
#$(CONFIG_UPDATE) $(@D)
|
|
||||||
$(SED) 's/uname -s/echo Linux/' \
|
$(SED) 's/uname -s/echo Linux/' \
|
||||||
-e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
|
-e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
|
||||||
$(PCIUTILS_DIR)/lib/configure
|
$(PCIUTILS_DIR)/lib/configure
|
||||||
touch $@
|
endef
|
||||||
|
|
||||||
$(PCIUTILS_DIR)/.compiled: $(PCIUTILS_DIR)/.unpacked
|
define PCIUTILS_BUILD_CMDS
|
||||||
$(MAKE1) CC="$(TARGET_CC)" OPT="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" RANLIB=$(TARGET_RANLIB) AR=$(TARGET_AR) -C $(PCIUTILS_DIR) \
|
$(MAKE) CC="$(TARGET_CC)" \
|
||||||
SHAREDIR="/usr/share/misc" \
|
OPT="$(TARGET_CFLAGS)" \
|
||||||
ZLIB=$(PCIUTILS_HAVE_ZLIB) \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
HOST=$(KERNEL_ARCH)-linux \
|
RANLIB=$(TARGET_RANLIB) \
|
||||||
PREFIX=/usr
|
AR=$(TARGET_AR) \
|
||||||
touch $@
|
-C $(PCIUTILS_DIR) \
|
||||||
|
SHARED=$(PCIUTILS_SHARED) \
|
||||||
|
ZLIB=$(PCIUTILS_ZLIB) \
|
||||||
|
DNS=$(PCIUTILS_DNS) \
|
||||||
|
SHAREDIR=/usr/share/misc
|
||||||
|
endef
|
||||||
|
|
||||||
$(TARGET_DIR)/sbin/lspci: $(PCIUTILS_DIR)/.compiled
|
define PCIUTILS_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) $(PCIUTILS_DIR)/lspci $(TARGET_DIR)/sbin/lspci
|
$(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr install
|
||||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
endef
|
||||||
|
|
||||||
$(TARGET_DIR)/sbin/setpci: $(PCIUTILS_DIR)/.compiled
|
$(eval $(call GENTARGETS,package,pciutils))
|
||||||
$(INSTALL) $(PCIUTILS_DIR)/setpci $(TARGET_DIR)/sbin/setpci
|
|
||||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
|
||||||
|
|
||||||
$(TARGET_DIR)/usr/share/misc/$(PCIIDS_FILE): $(PCIUTILS_DIR)/.unpacked
|
|
||||||
$(INSTALL) -D $(PCIUTILS_DIR)/$(PCIIDS_FILE) $@
|
|
||||||
|
|
||||||
pciutils: $(if $(BR2_PACKAGE_ZLIB),zlib) $(TARGET_DIR)/sbin/setpci $(TARGET_DIR)/sbin/lspci $(TARGET_DIR)/usr/share/misc/$(PCIIDS_FILE)
|
|
||||||
|
|
||||||
pciutils-source: $(DL_DIR)/$(PCIUTILS_SOURCE) $(DL_DIR)/$(PCIIDS_SOURCE)
|
|
||||||
|
|
||||||
pciutils-clean:
|
|
||||||
-$(MAKE) -C $(PCIUTILS_DIR) clean
|
|
||||||
rm -f $(TARGET_DIR)/sbin/lspci $(TARGET_DIR)/sbin/setpci $(TARGET_DIR)/usr/share/misc/pci.ids*
|
|
||||||
|
|
||||||
pciutils-dirclean:
|
|
||||||
rm -rf $(PCIUTILS_DIR)
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(BR2_PACKAGE_PCIUTILS),y)
|
|
||||||
TARGETS+=pciutils
|
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user