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) |
Ilya Smirnov | d56cef7 | 2021-06-23 09:34:37 -0500 | [diff] [blame] | 9 | PDATA_SITE = $(call github,open-power,pdata,$(PDATA_VERSION)) |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 10 | else ifeq ($(BR2_PDATA_CUSTOM_GIT),y) |
| 11 | PDATA_SITE = $(BR2_PDATA_CUSTOM_GIT_VALUE) |
| 12 | PDATA_SITE_METHOD = git |
| 13 | endif |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 14 | |
| 15 | PDATA_LICENSE = Apache-2.0 |
| 16 | PDATA_LICENSE_FILES = $(@D)/LICENSE |
| 17 | PDATA_INSTALL_STAGING = YES |
| 18 | PDATA_INSTALL_TARGET = NO |
| 19 | PDATA_AUTORECONF = YES |
Ramesh Iyyar | 41cb02b | 2020-06-19 03:22:30 -0500 | [diff] [blame] | 20 | PDATA_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 21 | PDATA_DEPENDENCIES = ekb host-dtc host-autoconf-archive |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 22 | |
| 23 | EKB_STAGING_DIR = $(STAGING_DIR)/ekb |
| 24 | MACHINE_XML_STAGING_DIR = $(STAGING_DIR)/openpower_mrw_scratch |
| 25 | |
| 26 | TARGET_PROC = |
| 27 | ifeq ($(BR2_OPENPOWER_POWER10),y) |
| 28 | TARGET_PROC = p10 |
| 29 | endif |
| 30 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 31 | ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y) |
| 32 | PDATA_DEPENDENCIES += $(call qstrip,$(BR2_OPENPOWER_P10_XMLS)) |
| 33 | QSTRIP_MACHINE_XMLS = $(call qstrip,$(foreach xml,$(BR2_OPENPOWER_P10_XMLS),$(MACHINE_XML_STAGING_DIR)/$(BR2_$(call UPPERCASE,$(call qstrip,$(xml)))_FILENAME))) |
| 34 | else |
| 35 | PDATA_DEPENDENCIES += machine-xml |
| 36 | QSTRIP_MACHINE_XMLS = $(call qstrip,$(MACHINE_XML_STAGING_DIR)/$(BR2_OPENPOWER_MACHINE_XML_FILENAME)) |
| 37 | endif |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 38 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 39 | PDATA_CONF_OPTS = --enable-gen_dynamicdt CHIP=$(TARGET_PROC) |
Ramesh Iyyar | df970c3 | 2020-07-01 06:35:31 -0500 | [diff] [blame] | 40 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 41 | PDATA_MAKE_OPTS = EKB=$(EKB_STAGING_DIR) \ |
| 42 | SYSTEMS_MRW_XML="$(QSTRIP_MACHINE_XMLS)" |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 43 | |
| 44 | define PDATA_CREATE_M4_DIR |
| 45 | mkdir -p $(@D)/m4 |
| 46 | endef |
| 47 | |
| 48 | PDATA_PRE_CONFIGURE_HOOKS += PDATA_CREATE_M4_DIR |
| 49 | $(eval $(autotools-package)) |