blob: 62e5fef74a4a2a8b5a4342ea45d2c0bc1f950e25 [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)
Ilya Smirnovd56cef72021-06-23 09:34:37 -05009PDATA_SITE = $(call github,open-power,pdata,$(PDATA_VERSION))
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030010else ifeq ($(BR2_PDATA_CUSTOM_GIT),y)
11PDATA_SITE = $(BR2_PDATA_CUSTOM_GIT_VALUE)
12PDATA_SITE_METHOD = git
13endif
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050014
15PDATA_LICENSE = Apache-2.0
16PDATA_LICENSE_FILES = $(@D)/LICENSE
17PDATA_INSTALL_STAGING = YES
18PDATA_INSTALL_TARGET = NO
19PDATA_AUTORECONF = YES
Ramesh Iyyar41cb02b2020-06-19 03:22:30 -050020PDATA_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030021PDATA_DEPENDENCIES = ekb host-dtc host-autoconf-archive
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050022
23EKB_STAGING_DIR = $(STAGING_DIR)/ekb
24MACHINE_XML_STAGING_DIR = $(STAGING_DIR)/openpower_mrw_scratch
25
26TARGET_PROC =
27ifeq ($(BR2_OPENPOWER_POWER10),y)
28TARGET_PROC = p10
29endif
30
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030031ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y)
32PDATA_DEPENDENCIES += $(call qstrip,$(BR2_OPENPOWER_P10_XMLS))
33QSTRIP_MACHINE_XMLS = $(call qstrip,$(foreach xml,$(BR2_OPENPOWER_P10_XMLS),$(MACHINE_XML_STAGING_DIR)/$(BR2_$(call UPPERCASE,$(call qstrip,$(xml)))_FILENAME)))
34else
35PDATA_DEPENDENCIES += machine-xml
36QSTRIP_MACHINE_XMLS = $(call qstrip,$(MACHINE_XML_STAGING_DIR)/$(BR2_OPENPOWER_MACHINE_XML_FILENAME))
37endif
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050038
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030039PDATA_CONF_OPTS = --enable-gen_dynamicdt CHIP=$(TARGET_PROC)
Ramesh Iyyardf970c32020-07-01 06:35:31 -050040
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030041PDATA_MAKE_OPTS = EKB=$(EKB_STAGING_DIR) \
42 SYSTEMS_MRW_XML="$(QSTRIP_MACHINE_XMLS)"
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050043
44define PDATA_CREATE_M4_DIR
45 mkdir -p $(@D)/m4
46endef
47
48PDATA_PRE_CONFIGURE_HOOKS += PDATA_CREATE_M4_DIR
49$(eval $(autotools-package))