diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-04-20 11:37:00 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-04-22 12:11:02 +0200 |
commit | b50674a438e9a5d0dc547f94834ec248ddf00059 (patch) | |
tree | 37dbee365a9003b4b4cb4142575e08e92740d9ec /scripts | |
parent | 1ee21af25d61ca882d92abf5aa433a93c3f419a9 (diff) | |
download | ptxdist-b50674a438e9a5d0dc547f94834ec248ddf00059.tar.gz ptxdist-b50674a438e9a5d0dc547f94834ec248ddf00059.tar.xz |
[packages] add config options to build/use devel packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_00-init.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_00-init.sh b/scripts/lib/ptxd_make_00-init.sh index 90bce713a..709f7936d 100644 --- a/scripts/lib/ptxd_make_00-init.sh +++ b/scripts/lib/ptxd_make_00-init.sh @@ -233,6 +233,25 @@ ptxd_init_cross_env() { IFS="${orig_IFS}" } +ptxd_init_devpkg() +{ + local prefix + + prefix="$(ptxd_get_ptxconf PTXCONF_PROJECT_DEVPKGDIR)" || return 0 + + local platform platform_version + platform="$(ptxd_get_ptxconf PTXCONF_PLATFORM)" + platform_version="$(ptxd_get_ptxconf PTXCONF_PLATFORM_VERSION)" + + if [ -n "${platform}" ]; then + prefix="${prefix}/platform-${platform}${platform_version}" + else + : # nothing to do for non-platform BSPs + fi + + PTXDIST_DEVPKG_PLATFORMDIR="${prefix}" + export PTXDIST_DEVPKG_PLATFORMDIR +} # # initialize vars needed by PTXdist's make @@ -245,6 +264,8 @@ ptxd_make_init() { ptxd_init_sysroot_toolchain || return fi && + ptxd_init_devpkg && + ptxd_init_ptxdist_path && ptxd_init_cross_env } |