hwdata: convert to gentargets and bump to 0.230
[Peter: get rid of unused vars, use install -D] Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
3d840536cc
commit
231449e1d5
2
CHANGES
2
CHANGES
@ -20,7 +20,7 @@
|
|||||||
Updated/fixed packages: alsa-lib, at, avahi, berkeleydb, bind,
|
Updated/fixed packages: alsa-lib, at, avahi, berkeleydb, bind,
|
||||||
bmon, boa, bridge-utils, bsdiff, busybox, dbus, dmraid,
|
bmon, boa, bridge-utils, bsdiff, busybox, dbus, dmraid,
|
||||||
docker, dosfstools, dropbear, e2fsprogs, expat, ezxml, fbset,
|
docker, dosfstools, dropbear, e2fsprogs, expat, ezxml, fbset,
|
||||||
freetype, gawk, gvfs, haserl, hostapd, ifplugd, iperf,
|
freetype, gawk, gvfs, haserl, hostapd, hwdata, ifplugd, iperf,
|
||||||
iproute2, iptables, jpeg, kexec, kismet, less, libcurl,
|
iproute2, iptables, jpeg, kexec, kismet, less, libcurl,
|
||||||
libdnet, libevent, libglade, libgtk2, libiconv, libidn,
|
libdnet, libevent, libglade, libgtk2, libiconv, libidn,
|
||||||
libmms, libnl, liboil, libpcap, libpng, libungif, libxml2,
|
libmms, libnl, liboil, libpcap, libpng, libungif, libxml2,
|
||||||
|
@ -3,48 +3,19 @@
|
|||||||
# hwdata
|
# hwdata
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
HWDATA_VERSION:=0.191
|
HWDATA_VERSION = 0.230
|
||||||
HWDATA_SOURCE:=hwdata_$(HWDATA_VERSION).orig.tar.gz
|
HWDATA_SOURCE = hwdata_$(HWDATA_VERSION).orig.tar.gz
|
||||||
HWDATA_PATCH:=hwdata_$(HWDATA_VERSION)-1.diff.gz
|
HWDATA_PATCH = hwdata_$(HWDATA_VERSION)-1.diff.gz
|
||||||
HWDATA_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/h/hwdata/
|
HWDATA_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/h/hwdata/
|
||||||
HWDATA_CAT:=$(ZCAT)
|
|
||||||
HWDATA_DIR:=$(BUILD_DIR)/hwdata-$(HWDATA_VERSION)
|
|
||||||
HWDATA_BINARY:=pci.ids
|
|
||||||
HWDATA_TARGET_BINARY:=usr/share/hwdata/pci.ids
|
|
||||||
|
|
||||||
$(DL_DIR)/$(HWDATA_SOURCE):
|
define HWDATA_INSTALL_TARGET_CMDS
|
||||||
$(call DOWNLOAD,$(HWDATA_SITE),$(HWDATA_SOURCE))
|
install -D -m 644 $(@D)/pci.ids $(TARGET_DIR)/usr/share/hwdata/pci.ids
|
||||||
|
install -D -m 644 $(@D)/usb.ids $(TARGET_DIR)/usr/share/hwdata/usb.ids
|
||||||
|
endef
|
||||||
|
|
||||||
$(DL_DIR)/$(HWDATA_PATCH):
|
define HWDATA_UNINSTALL_TARGET_CMDS
|
||||||
$(call DOWNLOAD,$(HWDATA_SITE),$(HWDATA_PATCH))
|
|
||||||
|
|
||||||
hwdata-source: $(DL_DIR)/$(HWDATA_SOURCE) $(DL_DIR)/$(HWDATA_PATCH)
|
|
||||||
|
|
||||||
$(HWDATA_DIR)/.unpacked: $(DL_DIR)/$(HWDATA_SOURCE) $(DL_DIR)/$(HWDATA_PATCH)
|
|
||||||
$(HWDATA_CAT) $(DL_DIR)/$(HWDATA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
toolchain/patch-kernel.sh $(HWDATA_DIR) $(DL_DIR) $(HWDATA_PATCH)
|
|
||||||
touch $(HWDATA_DIR)/.unpacked
|
|
||||||
|
|
||||||
$(TARGET_DIR)/$(HWDATA_TARGET_BINARY): $(HWDATA_DIR)/.unpacked
|
|
||||||
mkdir -p -m 755 $(TARGET_DIR)/usr/share/hwdata
|
|
||||||
cp -a $(HWDATA_DIR)/pci.ids $(TARGET_DIR)/usr/share/hwdata
|
|
||||||
cp -a $(HWDATA_DIR)/usb.ids $(TARGET_DIR)/usr/share/hwdata
|
|
||||||
-touch -c $(TARGET_DIR)/usr/share/hwdata/*
|
|
||||||
|
|
||||||
hwdata: $(TARGET_DIR)/$(HWDATA_TARGET_BINARY)
|
|
||||||
|
|
||||||
hwdata-clean:
|
|
||||||
rm -rf $(TARGET_DIR)/usr/share/hwdata
|
rm -rf $(TARGET_DIR)/usr/share/hwdata
|
||||||
rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share
|
rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share
|
||||||
|
endef
|
||||||
|
|
||||||
hwdata-dirclean:
|
$(eval $(call GENTARGETS,package,hwdata))
|
||||||
rm -rf $(HWDATA_DIR)
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(BR2_PACKAGE_HWDATA),y)
|
|
||||||
TARGETS+=hwdata
|
|
||||||
endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user