17c478bdstevel@tonic-gate#
27c478bdstevel@tonic-gate# CDDL HEADER START
37c478bdstevel@tonic-gate#
47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the
56927f46dp# Common Development and Distribution License (the "License").
66927f46dp# You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate#
87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate# See the License for the specific language governing permissions
117c478bdstevel@tonic-gate# and limitations under the License.
127c478bdstevel@tonic-gate#
137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate#
197c478bdstevel@tonic-gate# CDDL HEADER END
207c478bdstevel@tonic-gate#
215084e75Mark J. Nelson
227c478bdstevel@tonic-gate#
235084e75Mark J. Nelson# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
240b0972bDan McDonald# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
257e934d3Andy Fiddaman# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
267c478bdstevel@tonic-gate#
277c478bdstevel@tonic-gate
28503609aYuri Pankovinclude		$(SRC)/data/Makefile.data
296927f46dp
307e934d3Andy FiddamanHWDATA=		pci.ids usb.ids efi.fixes
31503609aYuri PankovHWDATADIR=	$(ROOT)/usr/share/hwdata
32503609aYuri PankovROOTHWDATA=	$(HWDATA:%=$(HWDATADIR)/%)
336927f46dp
347e934d3Andy FiddamanCLOBBERFILES=	THIRDPARTYLICENSE.pciids THIRDPARTYLICENSE.efifixes
357c478bdstevel@tonic-gate
36503609aYuri Pankov$(ROOTHWDATA):=	FILEMODE = 444
375084e75Mark J. Nelson
387e934d3Andy Fiddamanall install:	THIRDPARTYLICENSE.pciids THIRDPARTYLICENSE.efifixes
395084e75Mark J. Nelson
405084e75Mark J. NelsonTHIRDPARTYLICENSE.pciids: pci.ids THIRDPARTYLICENSE.pciids.tmpl
41503609aYuri Pankov		$(RM) $@
42503609aYuri Pankov		$(SED) -e '/^$$/,$$ d' < pci.ids > $@
43503609aYuri Pankov		$(CAT) THIRDPARTYLICENSE.pciids.tmpl >> $@
447c478bdstevel@tonic-gate
457e934d3Andy FiddamanTHIRDPARTYLICENSE.efifixes: efi.fixes THIRDPARTYLICENSE.efifixes.tmpl
467e934d3Andy Fiddaman		$(RM) $@
477e934d3Andy Fiddaman		$(SED) -e '/^$$/,$$ d' < efi.fixes > $@
487e934d3Andy Fiddaman		$(CAT) THIRDPARTYLICENSE.efifixes.tmpl >> $@
497e934d3Andy Fiddaman
50503609aYuri Pankovinstall:	$(ROOTHWDATA)
5118c2affartem
5218c2affartem$(HWDATADIR)/%: %
53503609aYuri Pankov		$(INS.file)
5418c2affartem
55503609aYuri Pankovclean:
5618c2affartem
570b0972bDan McDonald# The "update" target family allows a simple pull-from-the-source update.
580b0972bDan McDonald# One can then use revision-control diffs to see what actually changed.
59503609aYuri Pankovupdate:		usb.update pci.update
600b0972bDan McDonald
610b0972bDan McDonald# URLs for PCI IDs and USB IDs
62503609aYuri PankovPCIURL=		http://pci-ids.ucw.cz/v2.2/pci.ids
63503609aYuri PankovUSBURL=		http://www.linux-usb.org/usb.ids
640b0972bDan McDonald
650b0972bDan McDonald# These could move into Makefile.master
66503609aYuri PankovURL_FETCH=	wget
670b0972bDan McDonaldURL_FETCHARGS=
680b0972bDan McDonald
690b0972bDan McDonaldpci.update:
70503609aYuri Pankov		$(RM) pci.ids
71503609aYuri Pankov		$(URL_FETCH) $(URL_FETCHARGS) $(PCIURL)
720b0972bDan McDonald
730b0972bDan McDonaldusb.update:
74503609aYuri Pankov		$(RM) usb.ids
75503609aYuri Pankov		$(URL_FETCH) $(URL_FETCHARGS) $(USBURL)
760b0972bDan McDonald
77503609aYuri Pankovinclude		$(SRC)/data/Makefile.targ
78