blob: b1500ba859874d97c7e95939bfc4238a8497ab5a [file] [log] [blame]
Ramesh Iyyar25f085a2020-03-29 08:07:13 -05001################################################################################
2#
3# pdata
4#
5################################################################################
6
7PDATA_VERSION = $(call qstrip,$(BR2_PDATA_VERSION))
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -03008ifeq ($(BR2_PDATA_GITHUB_PROJECT),y)
Ramesh Iyyar25f085a2020-03-29 08:07:13 -05009# after that, when code is propagated to a public repo
10#PDATA_SITE = $(call github,phal,pdata,$(PDATA_VERSION))
11PDATA_SITE = git@github.ibm.com:phal/pdata.git
12PDATA_SITE_METHOD = git
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030013else ifeq ($(BR2_PDATA_CUSTOM_GIT),y)
14PDATA_SITE = $(BR2_PDATA_CUSTOM_GIT_VALUE)
15PDATA_SITE_METHOD = git
16endif
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050017
18PDATA_LICENSE = Apache-2.0
19PDATA_LICENSE_FILES = $(@D)/LICENSE
20PDATA_INSTALL_STAGING = YES
21PDATA_INSTALL_TARGET = NO
22PDATA_AUTORECONF = YES
Ramesh Iyyar41cb02b2020-06-19 03:22:30 -050023PDATA_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030024PDATA_DEPENDENCIES = ekb host-dtc host-autoconf-archive
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050025
26EKB_STAGING_DIR = $(STAGING_DIR)/ekb
27MACHINE_XML_STAGING_DIR = $(STAGING_DIR)/openpower_mrw_scratch
28
29TARGET_PROC =
30ifeq ($(BR2_OPENPOWER_POWER10),y)
31TARGET_PROC = p10
32endif
33
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030034ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y)
35PDATA_DEPENDENCIES += $(call qstrip,$(BR2_OPENPOWER_P10_XMLS))
36QSTRIP_MACHINE_XMLS = $(call qstrip,$(foreach xml,$(BR2_OPENPOWER_P10_XMLS),$(MACHINE_XML_STAGING_DIR)/$(BR2_$(call UPPERCASE,$(call qstrip,$(xml)))_FILENAME)))
37else
38PDATA_DEPENDENCIES += machine-xml
39QSTRIP_MACHINE_XMLS = $(call qstrip,$(MACHINE_XML_STAGING_DIR)/$(BR2_OPENPOWER_MACHINE_XML_FILENAME))
40endif
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050041
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030042PDATA_CONF_OPTS = --enable-gen_dynamicdt CHIP=$(TARGET_PROC)
Ramesh Iyyardf970c32020-07-01 06:35:31 -050043
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030044PDATA_MAKE_OPTS = EKB=$(EKB_STAGING_DIR) \
45 SYSTEMS_MRW_XML="$(QSTRIP_MACHINE_XMLS)"
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050046
47define PDATA_CREATE_M4_DIR
48 mkdir -p $(@D)/m4
49endef
50
51PDATA_PRE_CONFIGURE_HOOKS += PDATA_CREATE_M4_DIR
52$(eval $(autotools-package))