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)) |
| 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)) |
| 11 | PDATA_SITE = git@github.ibm.com:phal/pdata.git |
| 12 | PDATA_SITE_METHOD = git |
| 13 | |
| 14 | PDATA_LICENSE = Apache-2.0 |
| 15 | PDATA_LICENSE_FILES = $(@D)/LICENSE |
| 16 | PDATA_INSTALL_STAGING = YES |
| 17 | PDATA_INSTALL_TARGET = NO |
| 18 | PDATA_AUTORECONF = YES |
Ramesh Iyyar | 41cb02b | 2020-06-19 03:22:30 -0500 | [diff] [blame] | 19 | PDATA_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive |
| 20 | PDATA_DEPENDENCIES = ekb host-dtc machine-xml host-autoconf-archive |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 21 | |
| 22 | EKB_STAGING_DIR = $(STAGING_DIR)/ekb |
| 23 | MACHINE_XML_STAGING_DIR = $(STAGING_DIR)/openpower_mrw_scratch |
| 24 | |
| 25 | TARGET_PROC = |
| 26 | ifeq ($(BR2_OPENPOWER_POWER10),y) |
| 27 | TARGET_PROC = p10 |
| 28 | endif |
| 29 | |
| 30 | QSTRIP_MACHINE_XML = $(call qstrip,$(BR2_OPENPOWER_MACHINE_XML_FILENAME)) |
| 31 | |
Ramesh Iyyar | df970c3 | 2020-07-01 06:35:31 -0500 | [diff] [blame] | 32 | PDATA_CONF_OPTS = --enable-gen_dynamicdt \ |
| 33 | CHIP=$(TARGET_PROC) \ |
| 34 | |
Ramesh Iyyar | d685352 | 2020-09-01 09:36:59 -0500 | [diff] [blame] | 35 | PDATA_MAKE_OPTS = EKB=$(EKB_STAGING_DIR) \ |
| 36 | SYSTEMS_MRW_XML=$(MACHINE_XML_STAGING_DIR)/$(QSTRIP_MACHINE_XML) \ |
Ramesh Iyyar | 25f085a | 2020-03-29 08:07:13 -0500 | [diff] [blame] | 37 | |
| 38 | define PDATA_CREATE_M4_DIR |
| 39 | mkdir -p $(@D)/m4 |
| 40 | endef |
| 41 | |
| 42 | PDATA_PRE_CONFIGURE_HOOKS += PDATA_CREATE_M4_DIR |
| 43 | $(eval $(autotools-package)) |