Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # pdata |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | PDATA_VERSION = $(call qstrip,$(BR2_PDATA_VERSION)) |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame^] | 8 | ifeq ($(BR2_PDATA_GITHUB_PROJECT),y) |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 9 | # after that, when code is propagated to a public repo |
| 10 | #PDATA_SITE = $(call github,phal,pdata,$(PDATA_VERSION)) |
| 11 | PDATA_SITE = git@github.ibm.com:phal/pdata.git |
| 12 | PDATA_SITE_METHOD = git |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame^] | 13 | else ifeq ($(BR2_PDATA_CUSTOM_GIT),y) |
| 14 | PDATA_SITE = $(BR2_PDATA_CUSTOM_GIT_VALUE) |
| 15 | PDATA_SITE_METHOD = git |
| 16 | endif |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 17 | |
| 18 | PDATA_LICENSE = Apache-2.0 |
| 19 | PDATA_LICENSE_FILES = $(@D)/LICENSE |
| 20 | PDATA_INSTALL_STAGING = YES |
| 21 | PDATA_INSTALL_TARGET = NO |
| 22 | PDATA_AUTORECONF = YES |
Ramesh Iyyar | 41cb02b | 2020-06-19 03:22:30 -0500 | [diff] [blame] | 23 | PDATA_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame^] | 24 | PDATA_DEPENDENCIES = ekb host-dtc host-autoconf-archive |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 25 | |
| 26 | EKB_STAGING_DIR = $(STAGING_DIR)/ekb |
| 27 | MACHINE_XML_STAGING_DIR = $(STAGING_DIR)/openpower_mrw_scratch |
| 28 | |
| 29 | TARGET_PROC = |
| 30 | ifeq ($(BR2_OPENPOWER_POWER10),y) |
| 31 | TARGET_PROC = p10 |
| 32 | endif |
| 33 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame^] | 34 | ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y) |
| 35 | PDATA_DEPENDENCIES += $(call qstrip,$(BR2_OPENPOWER_P10_XMLS)) |
| 36 | QSTRIP_MACHINE_XMLS = $(call qstrip,$(foreach xml,$(BR2_OPENPOWER_P10_XMLS),$(MACHINE_XML_STAGING_DIR)/$(BR2_$(call UPPERCASE,$(call qstrip,$(xml)))_FILENAME))) |
| 37 | else |
| 38 | PDATA_DEPENDENCIES += machine-xml |
| 39 | QSTRIP_MACHINE_XMLS = $(call qstrip,$(MACHINE_XML_STAGING_DIR)/$(BR2_OPENPOWER_MACHINE_XML_FILENAME)) |
| 40 | endif |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 41 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame^] | 42 | PDATA_CONF_OPTS = --enable-gen_dynamicdt CHIP=$(TARGET_PROC) |
Ramesh Iyyar | df970c3 | 2020-07-01 06:35:31 -0500 | [diff] [blame] | 43 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame^] | 44 | PDATA_MAKE_OPTS = EKB=$(EKB_STAGING_DIR) \ |
| 45 | SYSTEMS_MRW_XML="$(QSTRIP_MACHINE_XMLS)" |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 46 | |
| 47 | define PDATA_CREATE_M4_DIR |
| 48 | mkdir -p $(@D)/m4 |
| 49 | endef |
| 50 | |
| 51 | PDATA_PRE_CONFIGURE_HOOKS += PDATA_CREATE_M4_DIR |
| 52 | $(eval $(autotools-package)) |