blob: 31dde4a90fdb8032b6142ba3bd4d3402f9b91f19 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# SDK packages are built either explicitly by the user,
2# or indirectly via dependency. No need to be in 'world'.
3EXCLUDE_FROM_WORLD = "1"
4
5STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"
6
7# libc for the SDK can be different to that of the target
8NATIVESDKLIBC ?= "libc-glibc"
9LIBCOVERRIDE = ":${NATIVESDKLIBC}"
10CLASSOVERRIDE = "class-nativesdk"
11MACHINEOVERRIDES = ""
12
Patrick Williamsc0f7c042017-02-23 20:41:17 -060013MULTILIBS = ""
14
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015#
16# Update PACKAGE_ARCH and PACKAGE_ARCHS
17#
18PACKAGE_ARCH = "${SDK_ARCH}-${SDKPKGSUFFIX}"
19PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}"
20
21#
22# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
23# binaries
24#
25DEPENDS_append = " chrpath-replacement-native"
26EXTRANATIVEPATH += "chrpath-native"
27
28STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}"
29STAGING_DIR_TARGET = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}"
30PKGDATA_DIR = "${STAGING_DIR_HOST}/pkgdata"
31
32HOST_ARCH = "${SDK_ARCH}"
33HOST_VENDOR = "${SDK_VENDOR}"
34HOST_OS = "${SDK_OS}"
35HOST_PREFIX = "${SDK_PREFIX}"
36HOST_CC_ARCH = "${SDK_CC_ARCH}"
37HOST_LD_ARCH = "${SDK_LD_ARCH}"
38HOST_AS_ARCH = "${SDK_AS_ARCH}"
39#HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
40
41TARGET_ARCH = "${SDK_ARCH}"
42TARGET_VENDOR = "${SDK_VENDOR}"
43TARGET_OS = "${SDK_OS}"
44TARGET_PREFIX = "${SDK_PREFIX}"
45TARGET_CC_ARCH = "${SDK_CC_ARCH}"
46TARGET_LD_ARCH = "${SDK_LD_ARCH}"
47TARGET_AS_ARCH = "${SDK_AS_ARCH}"
48TARGET_FPU = ""
49EXTRA_OECONF_GCC_FLOAT = ""
50
51CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
52CFLAGS = "${BUILDSDK_CFLAGS}"
53CXXFLAGS = "${BUILDSDK_CFLAGS}"
54LDFLAGS = "${BUILDSDK_LDFLAGS}"
55
56# Change to place files in SDKPATH
57base_prefix = "${SDKPATHNATIVE}"
58prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
59exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
60baselib = "lib"
61sbindir = "${bindir}"
62
63export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
64export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
65
66python nativesdk_virtclass_handler () {
67 pn = e.data.getVar("PN", True)
68 if not (pn.endswith("-nativesdk") or pn.startswith("nativesdk-")):
69 return
70
71 e.data.setVar("MLPREFIX", "nativesdk-")
72 e.data.setVar("PN", "nativesdk-" + e.data.getVar("PN", True).replace("-nativesdk", "").replace("nativesdk-", ""))
73 e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-nativesdk")
74}
75
76python () {
77 pn = d.getVar("PN", True)
78 if not pn.startswith("nativesdk-"):
79 return
80
81 import oe.classextend
82
83 clsextend = oe.classextend.NativesdkClassExtender("nativesdk", d)
84 clsextend.rename_packages()
85 clsextend.rename_package_variables((d.getVar("PACKAGEVARS", True) or "").split())
86
87 clsextend.map_depends_variable("DEPENDS")
88 clsextend.map_packagevars()
89 clsextend.map_variable("PROVIDES")
90 clsextend.map_regexp_variable("PACKAGES_DYNAMIC")
91}
92
93addhandler nativesdk_virtclass_handler
94nativesdk_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
95
96do_populate_sysroot[stamp-extra-info] = ""
97do_packagedata[stamp-extra-info] = ""
98
99USE_NLS = "${SDKUSE_NLS}"
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500100
101OLDEST_KERNEL = "${SDK_OLDEST_KERNEL}"