components/hwdata/Makefile
changeset 5682 94c0ca64c022
parent 4339 6501cf9c29f9
child 7860 8991c11f87b1
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
       
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 BUILD_BITS= NO_ARCH
    23 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=         hwdata
    28 COMPONENT_NAME=         hwdata
    26 COMPONENT_VERSION=      0.5.11
    29 COMPONENT_VERSION=      0.5.11
       
    30 COMPONENT_SRC=
    27 
    31 
    28 TPNO_PCI=	21782
    32 TPNO_PCI=	21782
    29 TPNO_USB=	21783
    33 TPNO_USB=	21783
    30 
    34 
    31 include $(WS_MAKE_RULES)/prep.mk
    35 BUILD_STYLE= archive
    32 include $(WS_MAKE_RULES)/ips.mk
    36 include $(WS_MAKE_RULES)/common.mk
    33 
    37 
    34 # Since upstream only offers the latest snapshot for download, without
    38 # Since upstream only offers the latest snapshot for download, without
    35 # any way to retrieve a specific version, we just keep the currently
    39 # any way to retrieve a specific version, we just keep the currently
    36 # shipped versions of these two text files directly in the gate and 
    40 # shipped versions of these two text files directly in the gate and 
    37 # simply check in new versions to update them.
    41 # simply check in new versions to update them.
    50 
    54 
    51 COMPONENT_ARCHIVE_URL_pci.ids =	http://pciids.sourceforge.net/v2.2/pci.ids
    55 COMPONENT_ARCHIVE_URL_pci.ids =	http://pciids.sourceforge.net/v2.2/pci.ids
    52 COMPONENT_ARCHIVE_URL_usb.ids =	http://www.linux-usb.org/usb.ids
    56 COMPONENT_ARCHIVE_URL_usb.ids =	http://www.linux-usb.org/usb.ids
    53 COMPONENT_ARCHIVE_URLS = $(foreach i,$(ID_FILES),$(COMPONENT_ARCHIVE_URL_$(i)))
    57 COMPONENT_ARCHIVE_URLS = $(foreach i,$(ID_FILES),$(COMPONENT_ARCHIVE_URL_$(i)))
    54 
    58 
    55 COMPONENT_BUGDB=	utility/hwdata
       
    56 
       
    57 # Retrieve version from ids file
    59 # Retrieve version from ids file
    58 ID_VERSION_EXTRACT_COMMAND=$(GSED) -n -e '/Version:/ { s/^.*: //p' -e ' q }'
    60 ID_VERSION_EXTRACT_COMMAND=$(GSED) -n -e '/Version:/ { s/^.*: //p' -e ' q }'
    59 
    61 
    60 PKG_OPTIONS += -D COMPONENT_ARCHIVE_URLS='$(COMPONENT_ARCHIVE_URLS:%=value="%")'
    62 PKG_OPTIONS += -D COMPONENT_ARCHIVE_URLS='$(COMPONENT_ARCHIVE_URLS:%=value="%")'
    61 PKG_MACROS += $(foreach i,$(ID_FILES),\
    63 PKG_MACROS += $(foreach i,$(ID_FILES),\
    69 	curl -s -o $@ $(COMPONENT_ARCHIVE_URL_$(@F))
    71 	curl -s -o $@ $(COMPONENT_ARCHIVE_URL_$(@F))
    70 
    72 
    71 # License files for packaging are generated during the build
    73 # License files for packaging are generated during the build
    72 LICENSES = $(ID_FILES:%=%.license)
    74 LICENSES = $(ID_FILES:%=%.license)
    73 BUILT_LICENSES = $(LICENSES:%=$(BUILD_DIR)/%)
    75 BUILT_LICENSES = $(LICENSES:%=$(BUILD_DIR)/%)
    74 
       
    75 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
       
    76 
    76 
    77 # Extract the header up to the first blank line
    77 # Extract the header up to the first blank line
    78 $(BUILD_DIR)/%.header: %
    78 $(BUILD_DIR)/%.header: %
    79 	$(MKDIR) $(@D)
    79 	$(MKDIR) $(@D)
    80 	$(GSED) -e '/^$$/ q' $< > $@
    80 	$(GSED) -e '/^$$/ q' $< > $@
   101 		fi \
   101 		fi \
   102 	done
   102 	done
   103 
   103 
   104 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
   104 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
   105 
   105 
   106 clobber clean::
       
   107 	$(RM) -r $(BUILD_DIR)
       
   108