aboutsummaryrefslogtreecommitdiff
path: root/package/hwdata/hwdata.mk
blob: 7a0cef80800a5a1a2b0dc0c96ca55dc2fc5554fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#############################################################
#
# hwdata
#
#############################################################
HWDATA_VERSION = 0.230
HWDATA_SOURCE = hwdata_$(HWDATA_VERSION).orig.tar.gz
HWDATA_PATCH = hwdata_$(HWDATA_VERSION)-1.diff.gz
HWDATA_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/h/hwdata/

define HWDATA_INSTALL_TARGET_CMDS
	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

define HWDATA_UNINSTALL_TARGET_CMDS
	rm -rf $(TARGET_DIR)/usr/share/hwdata
	rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share
endef

$(eval $(call GENTARGETS,package,hwdata))