1d71117a7SYuri Pankov# 2d71117a7SYuri Pankov# CDDL HEADER START 3d71117a7SYuri Pankov# 4d71117a7SYuri Pankov# The contents of this file are subject to the terms of the 5d71117a7SYuri Pankov# Common Development and Distribution License (the "License"). 6d71117a7SYuri Pankov# You may not use this file except in compliance with the License. 7d71117a7SYuri Pankov# 8d71117a7SYuri Pankov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d71117a7SYuri Pankov# or http://www.opensolaris.org/os/licensing. 10d71117a7SYuri Pankov# See the License for the specific language governing permissions 11d71117a7SYuri Pankov# and limitations under the License. 12d71117a7SYuri Pankov# 13d71117a7SYuri Pankov# When distributing Covered Code, include this CDDL HEADER in each 14d71117a7SYuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d71117a7SYuri Pankov# If applicable, add the following below this CDDL HEADER, with the 16d71117a7SYuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying 17d71117a7SYuri Pankov# information: Portions Copyright [yyyy] [name of copyright owner] 18d71117a7SYuri Pankov# 19d71117a7SYuri Pankov# CDDL HEADER END 20d71117a7SYuri Pankov# 21d71117a7SYuri Pankov 22d71117a7SYuri Pankov# 23d71117a7SYuri Pankov# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 24d71117a7SYuri Pankov# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved. 25d71117a7SYuri Pankov# 26d71117a7SYuri Pankov 27d71117a7SYuri Pankovinclude $(SRC)/data/Makefile.data 28d71117a7SYuri Pankov 29d71117a7SYuri PankovHWDATA= pci.ids usb.ids 30d71117a7SYuri PankovHWDATADIR= $(ROOT)/usr/share/hwdata 31d71117a7SYuri PankovROOTHWDATA= $(HWDATA:%=$(HWDATADIR)/%) 32d71117a7SYuri Pankov 33d71117a7SYuri PankovCLOBBERFILES= THIRDPARTYLICENSE.pciids 34d71117a7SYuri Pankov 35d71117a7SYuri Pankov$(ROOTHWDATA):= FILEMODE = 444 36d71117a7SYuri Pankov 37d71117a7SYuri Pankovall install: THIRDPARTYLICENSE.pciids 38d71117a7SYuri Pankov 39d71117a7SYuri PankovTHIRDPARTYLICENSE.pciids: pci.ids THIRDPARTYLICENSE.pciids.tmpl 40d71117a7SYuri Pankov $(RM) $@ 41d71117a7SYuri Pankov $(SED) -e '/^$$/,$$ d' < pci.ids > $@ 42d71117a7SYuri Pankov $(CAT) THIRDPARTYLICENSE.pciids.tmpl >> $@ 43d71117a7SYuri Pankov 44d71117a7SYuri Pankovinstall: $(ROOTHWDATA) 45d71117a7SYuri Pankov 46d71117a7SYuri Pankov$(HWDATADIR)/%: % 47d71117a7SYuri Pankov $(INS.file) 48d71117a7SYuri Pankov 49d71117a7SYuri Pankovclean: 50d71117a7SYuri Pankov 51d71117a7SYuri Pankov# The "update" target family allows a simple pull-from-the-source update. 52d71117a7SYuri Pankov# One can then use revision-control diffs to see what actually changed. 53d71117a7SYuri Pankovupdate: usb.update pci.update 54d71117a7SYuri Pankov 55d71117a7SYuri Pankov# URLs for PCI IDs and USB IDs 56*f601e0a1SRobert MustacchiPCIURL= https://pci-ids.ucw.cz/v2.2/pci.ids 57d71117a7SYuri PankovUSBURL= http://www.linux-usb.org/usb.ids 58d71117a7SYuri Pankov 59d71117a7SYuri Pankov# These could move into Makefile.master 60d71117a7SYuri PankovURL_FETCH= wget 61d71117a7SYuri PankovURL_FETCHARGS= 62d71117a7SYuri Pankov 63d71117a7SYuri Pankovpci.update: 64d71117a7SYuri Pankov $(RM) pci.ids 65d71117a7SYuri Pankov $(URL_FETCH) $(URL_FETCHARGS) $(PCIURL) 66d71117a7SYuri Pankov 67d71117a7SYuri Pankovusb.update: 68d71117a7SYuri Pankov $(RM) usb.ids 69d71117a7SYuri Pankov $(URL_FETCH) $(URL_FETCHARGS) $(USBURL) 70d71117a7SYuri Pankov 71d71117a7SYuri Pankovinclude $(SRC)/data/Makefile.targ 72