diff options
author | 2008-06-22 13:41:47 -0700 | |
---|---|---|
committer | 2008-06-22 13:41:47 -0700 | |
commit | fea0d8585c4583cab3f8413c58a201dba1993320 (patch) | |
tree | 2b0074bff6669363cc0946176877bfe4ddee9f3a /wrappers/etc/portage | |
download | crossdev-fea0d8585c4583cab3f8413c58a201dba1993320.tar.gz crossdev-fea0d8585c4583cab3f8413c58a201dba1993320.tar.bz2 crossdev-fea0d8585c4583cab3f8413c58a201dba1993320.zip |
Initial commit to crossdev repo.
Diffstat (limited to 'wrappers/etc/portage')
-rw-r--r-- | wrappers/etc/portage/bashrc | 13 | ||||
-rw-r--r-- | wrappers/etc/portage/env/sys-apps/busybox | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/wrappers/etc/portage/bashrc b/wrappers/etc/portage/bashrc new file mode 100644 index 0000000..f59c65b --- /dev/null +++ b/wrappers/etc/portage/bashrc @@ -0,0 +1,13 @@ +. ${PORTDIR}/profiles/base/profile.bashrc + +post_src_install() { + [[ -d ${D} ]] || return 0 + [[ ${E_MACHINE} == "" ]] && return 0 + output="$( cd ${D} && scanelf -RmyBF%a . | grep -v -e ^${E_MACHINE} )" + [[ $output != "" ]] && { echo; echo "* Wrong EM_TYPE. Expected ${E_MACHINE}"; echo -e "${output}"; echo; exit 1; } +} + +# We dont functionize this to avoid sandboxing. +if [[ $EBUILD_PHASE == "postinst" ]]; then + [[ $EMERGE_FROM != binary ]] && cross-fix-root ${CHOST} +fi diff --git a/wrappers/etc/portage/env/sys-apps/busybox b/wrappers/etc/portage/env/sys-apps/busybox new file mode 100644 index 0000000..2090a62 --- /dev/null +++ b/wrappers/etc/portage/env/sys-apps/busybox @@ -0,0 +1,5 @@ +filter_cross_flags() { + [[ ${CFLAGS/-mtunue=/} != ${CFLAGS} ]] + export CFLAGS="-Os -fomit-frame-pointer -pipe" +} +filter_cross_flags |