xref: /OK3568_Linux_fs/buildroot/package/sdbusplus/sdbusplus.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# sdbusplus
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSDBUSPLUS_VERSION = 4212292bcf136d04b38ba5116aa568b0fa312798
8*4882a593SmuzhiyunSDBUSPLUS_SITE = $(call github,openbmc,sdbusplus,$(SDBUSPLUS_VERSION))
9*4882a593SmuzhiyunSDBUSPLUS_DEPENDENCIES = host-autoconf-archive host-pkgconf systemd
10*4882a593SmuzhiyunHOST_SDBUSPLUS_DEPENDENCIES = \
11*4882a593Smuzhiyun	host-autoconf-archive \
12*4882a593Smuzhiyun	host-pkgconf \
13*4882a593Smuzhiyun	host-python3 \
14*4882a593Smuzhiyun	host-python-inflection \
15*4882a593Smuzhiyun	host-python-mako \
16*4882a593Smuzhiyun	host-python-pyyaml
17*4882a593SmuzhiyunSDBUSPLUS_CONF_OPTS = --disable-sdbuspp
18*4882a593SmuzhiyunHOST_SDBUSPLUS_CONF_OPTS = --disable-libsdbusplus
19*4882a593SmuzhiyunSDBUSPLUS_AUTORECONF = YES
20*4882a593SmuzhiyunSDBUSPLUS_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive
21*4882a593SmuzhiyunSDBUSPLUS_INSTALL_STAGING = YES
22*4882a593SmuzhiyunSDBUSPLUS_LICENSE = Apache-2.0
23*4882a593SmuzhiyunSDBUSPLUS_LICENSE_FILES = LICENSE
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun# Autoreconf is missing the m4/ directory, which might actually be missing
26*4882a593Smuzhiyun# iff it was the first argument, but unfortunately we are overriding the
27*4882a593Smuzhiyun# first include directory above. Thus we need that hook here.
28*4882a593Smuzhiyundefine SDBUSPLUS_CREATE_M4
29*4882a593Smuzhiyun	mkdir -p $(@D)/m4
30*4882a593Smuzhiyunendef
31*4882a593SmuzhiyunSDBUSPLUS_POST_PATCH_HOOKS += SDBUSPLUS_CREATE_M4
32*4882a593SmuzhiyunHOST_SDBUSPLUS_POST_PATCH_HOOKS += SDBUSPLUS_CREATE_M4
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun$(eval $(autotools-package))
35*4882a593Smuzhiyun$(eval $(host-autotools-package))
36