[v2] setools: set package include path

Message ID 1517955405-12547-1-git-send-email-matthew.weber@rockwellcollins.com
State Not Applicable
Headers show
Series
  • [v2] setools: set package include path
Related show

Commit Message

Matthew Weber Feb. 6, 2018, 10:16 p.m.
With per-package host/staging, the setuptools include path will
point at the python package's include folder and not the common
sysroot/hostdir location.  So this patch updates to explicitly
point at the respective folder for the target vs host.

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
--
Changes v1 -> v2
 - correct path for target to be ${STAGING_DIR}/usr
    (previous did not include usr)
---
 package/setools/setools.mk | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/package/setools/setools.mk b/package/setools/setools.mk
index 6748c95..bef7356 100644
--- a/package/setools/setools.mk
+++ b/package/setools/setools.mk
@@ -20,6 +20,9 @@  SETOOLS_PYLIBVER = python$(PYTHON_VERSION_MAJOR)
 SETOOLS_DEPENDENCIES += python-enum34
 endif
 
+SETOOLS_ENV += SEPOL_SRC=$(STAGING_DIR)/usr
+HOST_SETOOLS_ENV += SEPOL_SRC=$(HOST_DIR)
+
 define SETOOLS_FIX_SETUP
 	# By default, setup.py will look for libsepol.a in the host machines
 	# /usr/lib directory. This needs to be changed to the staging directory.