break bare-metal targets out of linux handling and set KPKG to none
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Feb 2007 00:52:34 +0000 (00:52 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 22 Feb 2007 00:52:34 +0000 (00:52 +0000)
Package-Manager: portage-2.1.2-r10

sys-devel/crossdev/files/crossdev

index a19cd716c62b475949dffd5838ec029b38dbf71f..1c71b4319e90dbc8cdee8416825f3ba29286f5e1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.87 2007/02/17 13:50:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.88 2007/02/22 00:52:34 vapier Exp $
 
 cd /
 umask 0022 #159111
@@ -191,13 +191,18 @@ parse_target() {
        case ${CTARGET} in
                # Normal Linux host, just diff libc
                *-dietlibc) LPKG="dietlibc";;
-               *-elf)      LPKG="newlib";;
                *-gnu*)     LPKG="glibc";;
                *-klibc)    LPKG="klibc";;
-               *-newlib)   LPKG="newlib";;
                *-uclibc*)  LPKG="uclibc";;
                *-uclinux)  LPKG="uclibc";;
 
+               # Bare metal targets
+               *-newlib|*-elf)
+                       LPKG="newlib"
+                       KPKG="[none]"
+                       STAGE=${STAGE_LIBC}
+                       ;;
+
                # Now for the BSDs ...
                *-freebsd*)
                        LCAT="sys-freebsd" LPKG="freebsd-lib"