blob: 4ebe703d2c1a8fd9bdd58605d31829856e87e924 [file] [log] [blame]
Ramesh Iyyar25f085a2020-03-29 08:07:13 -05001################################################################################
2#
3# pdata
4#
5################################################################################
6
7PDATA_VERSION = $(call qstrip,$(BR2_PDATA_VERSION))
8# TODO: WORKAROUND: Need to reenable next line and comment out the two lines
9# 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
13
14PDATA_LICENSE = Apache-2.0
15PDATA_LICENSE_FILES = $(@D)/LICENSE
16PDATA_INSTALL_STAGING = YES
17PDATA_INSTALL_TARGET = NO
18PDATA_AUTORECONF = YES
Ramesh Iyyar41cb02b2020-06-19 03:22:30 -050019PDATA_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive
20PDATA_DEPENDENCIES = ekb host-dtc machine-xml host-autoconf-archive
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050021
22EKB_STAGING_DIR = $(STAGING_DIR)/ekb
23MACHINE_XML_STAGING_DIR = $(STAGING_DIR)/openpower_mrw_scratch
24
25TARGET_PROC =
26ifeq ($(BR2_OPENPOWER_POWER10),y)
27TARGET_PROC = p10
28endif
29
30QSTRIP_MACHINE_XML = $(call qstrip,$(BR2_OPENPOWER_MACHINE_XML_FILENAME))
31
Ramesh Iyyardf970c32020-07-01 06:35:31 -050032PDATA_CONF_OPTS = --enable-gen_dynamicdt \
33 CHIP=$(TARGET_PROC) \
34
Ramesh Iyyard6853522020-09-01 09:36:59 -050035PDATA_MAKE_OPTS = EKB=$(EKB_STAGING_DIR) \
36 SYSTEMS_MRW_XML=$(MACHINE_XML_STAGING_DIR)/$(QSTRIP_MACHINE_XML) \
Ramesh Iyyar25f085a2020-03-29 08:07:13 -050037
38define PDATA_CREATE_M4_DIR
39 mkdir -p $(@D)/m4
40endef
41
42PDATA_PRE_CONFIGURE_HOOKS += PDATA_CREATE_M4_DIR
43$(eval $(autotools-package))