sdk.bbclass: Rename to nativesdk.bbclass

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2009-09-17 00:05:34 +01:00
parent af85ce4b4e
commit 0d7207ca39
61 changed files with 111 additions and 112 deletions

View File

@ -289,7 +289,7 @@ def package_qa_check_arch(path,name,d):
target_arch = bb.data.getVar('TARGET_ARCH', d, True)
# FIXME: Cross package confuse this check, so just skip them
if bb.data.inherits_class('cross', d) or bb.data.inherits_class('sdk', d):
if bb.data.inherits_class('cross', d) or bb.data.inherits_class('nativesdk', d):
return True
# avoid following links to /usr/bin (e.g. on udev builds)

View File

@ -6,7 +6,7 @@ EXCLUDE_FROM_WORLD = "1"
OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
# Save PACKAGE_ARCH
OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk"
PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-nativesdk"
# Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
@ -82,21 +82,21 @@ python __anonymous () {
for dep in deps:
if dep.endswith("-native") or dep.endswith("-cross"):
continue
if not dep.endswith("-sdk"):
if not dep.endswith("-nativesdk"):
if autoextend:
depends = depends.replace(dep, dep + "-sdk")
elif pn == 'gcc-cross-sdk':
depends = depends.replace(dep, dep + "-nativesdk")
elif pn == 'gcc-cross-nativesdk':
continue
else:
bb.note("%s has depends %s which doesn't end in -sdk?" % (pn, dep))
bb.note("%s has depends %s which doesn't end in -nativesdk?" % (pn, dep))
bb.data.setVar("DEPENDS", depends, d)
provides = bb.data.getVar("PROVIDES", d, True)
for prov in provides.split():
if prov.find(pn) != -1:
continue
if not prov.endswith("-sdk"):
if not prov.endswith("-nativesdk"):
if autoextend:
provides = provides.replace(prov, prov + "-sdk")
provides = provides.replace(prov, prov + "-nativesdk")
#else:
# bb.note("%s has rouge PROVIDES of %s which doesn't end in -sdk?" % (pn, prov))
bb.data.setVar("PROVIDES", provides, d)

View File

@ -75,7 +75,7 @@ package_update_index_ipk () {
packagedirs="${DEPLOY_DIR_IPK}"
for arch in $ipkgarchs; do
packagedirs="$packagedirs ${DEPLOY_DIR_IPK}/$arch ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk"
packagedirs="$packagedirs ${DEPLOY_DIR_IPK}/$arch ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-nativesdk"
done
for pkgdir in $packagedirs; do
@ -100,8 +100,8 @@ package_generate_ipkg_conf () {
if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then
echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${IPKGCONF_TARGET}
fi
if [ -e ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages ] ; then
echo "src oe-${BUILD_ARCH}-$arch-sdk file:${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk" >> ${IPKGCONF_SDK}
if [ -e ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-nativesdk/Packages ] ; then
echo "src oe-${BUILD_ARCH}-$arch-nativesdk file:${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-nativesdk" >> ${IPKGCONF_SDK}
fi
done
}
@ -111,7 +111,7 @@ package_generate_archlist () {
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${IPKGCONF_TARGET}
echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${IPKGCONF_SDK}
echo "arch ${BUILD_ARCH}-$arch-nativesdk $priority" >> ${IPKGCONF_SDK}
priority=$(expr $priority + 5)
done
}

View File

@ -146,7 +146,7 @@ P = "${PN}-${PV}"
# Base package name
# Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial"
# otherwise it is the same as PN and P
SPECIAL_PKGSUFFIX = "-native -cross-sdk -cross -sdk -initial -intermediate"
SPECIAL_PKGSUFFIX = "-native -cross-sdk -cross -nativesdk -initial -intermediate"
BPN = "${@base_prune_suffix(bb.data.getVar('PN', d, True), bb.data.getVar('SPECIAL_PKGSUFFIX', d, True).split(), d)}"
BP = "${BPN}-${PV}"

View File

@ -1,4 +1,4 @@
inherit sdk
inherit nativesdk
DEPENDS += "flex-native bison-native"
EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
--program-prefix=${TARGET_PREFIX}"

View File

@ -0,0 +1,3 @@
require binutils_${PV}.bb
require binutils-cross-nativesdk.inc
PR = "r3"

View File

@ -0,0 +1,3 @@
require binutils_${PV}.bb
require binutils-cross-nativesdk.inc
PR = "r0"

View File

@ -1,3 +0,0 @@
require binutils_${PV}.bb
require binutils-cross-sdk.inc
PR = "r3"

View File

@ -1,3 +0,0 @@
require binutils_${PV}.bb
require binutils-cross-sdk.inc
PR = "r0"

View File

@ -0,0 +1,4 @@
require curl_${PV}.bb
inherit nativesdk
DEPENDS = "zlib-nativesdk"

View File

@ -1,4 +0,0 @@
require curl_${PV}.bb
inherit sdk
DEPENDS = "zlib-sdk"

View File

@ -10,4 +10,4 @@ do_configure_prepend () {
touch ${S}/conftools/libtool.m4
}
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -1,6 +1,6 @@
PR = "r3"
inherit sdk
inherit nativesdk
require gcc-${PV}.inc
require gcc-cross-sdk.inc

View File

@ -1,6 +1,6 @@
PR = "r6"
inherit sdk
inherit nativesdk
require gcc-${PV}.inc
require gcc-cross-sdk.inc

View File

@ -1,6 +1,6 @@
PR = "r6"
inherit sdk
inherit nativesdk
require gcc-${PV}.inc
require gcc-cross-sdk.inc

View File

@ -1,6 +1,6 @@
PR = "r3"
inherit sdk
inherit nativesdk
require gcc-${PV}.inc
require gcc-cross-sdk.inc

View File

@ -1,4 +1,4 @@
inherit sdk
inherit nativesdk
DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc"

View File

@ -0,0 +1,9 @@
require gdb-cross.inc
DEPENDS = "ncurses-nativesdk expat-nativesdk"
inherit nativesdk
do_stage() {
:
}

View File

@ -1,9 +0,0 @@
require gdb-cross.inc
DEPENDS = "ncurses-sdk expat-sdk"
inherit sdk
do_stage() {
:
}

View File

@ -1,6 +1,5 @@
require gmp_${PV}.bb
inherit sdk
inherit nativesdk
oe_runconf () {
if [ -x ${S}/configure ] ; then

View File

@ -0,0 +1,2 @@
PV = "4.2.4"
require gmp-nativesdk.inc

View File

@ -1,2 +0,0 @@
PV = "4.2.4"
require gmp-sdk.inc

View File

@ -2,8 +2,8 @@ DESCRIPTION = "Simple DirectMedia Layer - native Edition"
HOMEPAGE = "http://www.libsdl.org"
SECTION = "libs"
LICENSE = "LGPL"
DEPENDS = "libx11-sdk libxext-sdk libxrandr-sdk libxrender-sdk"
RDEPENDS = "libx11-sdk libxrandr-sdk libxrender-sdk libxext-sdk"
DEPENDS = "libx11-nativesdk libxext-nativesdk libxrandr-nativesdk libxrender-nativesdk"
RDEPENDS = "libx11-nativesdk libxrandr-nativesdk libxrender-nativesdk libxext-nativesdk"
PR = "r4"
SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
@ -12,7 +12,7 @@ SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
file://kernel-asm-page.patch;patch=1 "
S = "${WORKDIR}/SDL-${PV}"
inherit autotools_stage binconfig pkgconfig sdk
inherit autotools_stage binconfig pkgconfig nativesdk
EXTRA_OECONF = "--disable-static --disable-debug --disable-cdrom --enable-threads --enable-timers --enable-endian \
--enable-file --disable-oss --disable-alsa --disable-esd --disable-arts \

View File

@ -4,7 +4,7 @@ require libtool_${PV}.bb
PR = "r0"
SRC_URI_append = " file://cross_compile.patch;patch=1"
inherit sdk
inherit nativesdk
do_install () {
install -d ${D}${bindir}/

View File

@ -14,7 +14,7 @@ PACKAGES_DYNAMIC = "glibc-gconv-*"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r1"
inherit sdk
inherit nativesdk
do_stage() {
if [ ! -e ${prefix}/environment-setup ]; then

View File

@ -0,0 +1,4 @@
require mpfr_${PV}.bb
inherit nativesdk
DEPENDS = "gmp-nativesdk"

View File

@ -1,4 +0,0 @@
require mpfr_${PV}.bb
inherit sdk
DEPENDS = "gmp-sdk"

View File

@ -1,3 +1,3 @@
require ncurses_${PV}.bb
inherit sdk
inherit nativesdk
EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'

View File

@ -1,8 +1,8 @@
require opkg.inc
DEPENDS = "curl-sdk"
DEPENDS = "curl-nativesdk"
PR = "r3"
inherit sdk
inherit nativesdk
EXTRA_OECONF += "--with-opkglibdir=${target_libdir} --disable-gpg"

View File

@ -1,3 +1,3 @@
require pkgconfig.inc
inherit sdk
inherit nativesdk
DEPENDS = ""

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Qemu helper scripts from Poky"
LICENSE = "GPL"
RDEPENDS = "qemu-sdk"
RDEPENDS = "qemu-nativesdk"
PR = "r7"
FILESPATH = "${FILE_DIRNAME}/qemu-helper"
@ -11,10 +11,10 @@ SRC_URI = "file://${OEROOT}/scripts/poky-qemu \
file://${OEROOT}/scripts/poky-qemu-ifup \
file://${OEROOT}/scripts/poky-qemu-ifdown \
file://raw2flash.c"
S = "${WORKDIR}"
inherit sdk
inherit nativesdk
do_compile() {
${CC} raw2flash.c -o raw2flash.spitz

View File

@ -0,0 +1,3 @@
inherit nativesdk
DEPENDS = "zlib-nativesdk libsdl-nativesdk"
RDEPENDS = "libsdl-nativesdk"

View File

@ -1,5 +1,5 @@
require qemu_${PV}.bb
require qemu-sdk.inc
require qemu-nativesdk.inc
EXTRA_OECONF +="--target-list=arm-linux-user,arm-softmmu,i386-softmmu"

View File

@ -1,5 +1,5 @@
require qemu_git.bb
require qemu-sdk.inc
require qemu-nativesdk.inc
PR = "r2"

View File

@ -1,3 +0,0 @@
inherit sdk
DEPENDS = "zlib-sdk libsdl-sdk"
RDEPENDS = "libsdl-sdk"

View File

@ -7,24 +7,24 @@ PR = "r7"
LICENSE = "MIT"
ALLOW_EMPTY = "1"
inherit sdk
inherit nativesdk
PACKAGES = "${PN}"
RDEPENDS_${PN} = "\
binutils-cross-sdk \
gcc-cross-sdk \
gdb-cross-sdk \
pkgconfig-sdk \
qemu-sdk \
qemu-helper-sdk \
opkg-sdk \
binutils-cross-nativesdk \
gcc-cross-nativesdk \
gdb-cross-nativesdk \
pkgconfig-nativesdk \
qemu-nativesdk \
qemu-helper-nativesdk \
opkg-nativesdk \
"
RDEPENDS_${PN}_darwin8 = "\
odcctools-cross-sdk \
llvm-cross-sdk \
pkgconfig-sdk \
opkg-sdk \
libtool-sdk \
odcctools-cross-nativesdk \
llvm-cross-nativesdk \
pkgconfig-nativesdk \
opkg-nativesdk \
libtool-nativesdk \
"

View File

@ -0,0 +1,6 @@
require libx11_${PV}.bb
DEPENDS = "xproto-nativesdk xextproto-nativesdk libxau-nativesdk xtrans-nativesdk libxdmcp-nativesdk xcmiscproto-nativesdk xf86bigfontproto-nativesdk kbproto-nativesdk inputproto-nativesdk bigreqsproto-nativesdk util-macros-nativesdk xproto-native"
PROVIDES = "virtual/libx11-nativesdk"
inherit nativesdk

View File

@ -0,0 +1,9 @@
require libx11.inc
require libx11_git.inc
DEPENDS = "xproto-nativesdk xextproto-nativesdk libxau-nativesdk xtrans-nativesdk libxdmcp-nativesdk xcmiscproto-nativesdk xf86bigfontproto-nativesdk kbproto-nativesdk inputproto-nativesdk bigreqsproto-nativesdk util-macros-nativesdk xproto-native"
PROVIDES = "virtual/libx11-nativesdk"
EXTRA_OECONF += "--without-xcb"
inherit nativesdk

View File

@ -1,6 +0,0 @@
require libx11_${PV}.bb
DEPENDS = "xproto-sdk xextproto-sdk libxau-sdk xtrans-sdk libxdmcp-sdk xcmiscproto-sdk xf86bigfontproto-sdk kbproto-sdk inputproto-sdk bigreqsproto-sdk util-macros-sdk xproto-native"
PROVIDES = "virtual/libx11-sdk"
inherit sdk

View File

@ -1,9 +0,0 @@
require libx11.inc
require libx11_git.inc
DEPENDS = "xproto-sdk xextproto-sdk libxau-sdk xtrans-sdk libxdmcp-sdk xcmiscproto-sdk xf86bigfontproto-sdk kbproto-sdk inputproto-sdk bigreqsproto-sdk util-macros-sdk xproto-native"
PROVIDES = "virtual/libx11-sdk"
EXTRA_OECONF += "--without-xcb"
inherit sdk

View File

@ -7,4 +7,4 @@ PE = "1"
XORG_PN = "libXau"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -8,4 +8,4 @@ PE = "1"
XORG_PN = "libXdmcp"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -7,4 +7,4 @@ PE = "1"
XORG_PN = "libXext"
BBCLASSEXTEND = "sdk"
BBCLASSEXTEND = "nativesdk"

View File

@ -11,4 +11,4 @@ XORG_PN = "libXext"
SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/${XORG_PN};protocol=git"
S = "${WORKDIR}/git/"
BBCLASSEXTEND = "sdk"
BBCLASSEXTEND = "nativesdk"

View File

@ -8,4 +8,4 @@ PE = "1"
XORG_PN = "libXrandr"
BBCLASSEXTEND = "sdk"
BBCLASSEXTEND = "nativesdk"

View File

@ -8,4 +8,4 @@ PE = "1"
XORG_PN = "libXrender"
BBCLASSEXTEND = "sdk"
BBCLASSEXTEND = "nativesdk"

View File

@ -7,4 +7,4 @@ PR = "r0"
RDEPENDS_${PN}-dev = ""
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -3,4 +3,4 @@ require xorg-proto-common.inc
PR = "r1"
PE = "1"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -5,4 +5,4 @@ PE = "1"
DEPENDS += "util-macros"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -9,4 +9,4 @@ S = "${WORKDIR}/git"
DEPENDS += "util-macros"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -3,4 +3,4 @@ require xorg-proto-common.inc
PR = "r1"
PE = "1"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -4,4 +4,4 @@ CONFLICTS = "randrext"
PR = "r1"
PE = "1"
BBCLASSEXTEND = "sdk"
BBCLASSEXTEND = "nativesdk"

View File

@ -4,4 +4,4 @@ CONFLICTS = "renderext"
PR = "r1"
PE = "1"
BBCLASSEXTEND = "sdk"
BBCLASSEXTEND = "nativesdk"

View File

@ -3,4 +3,4 @@ require xorg-proto-common.inc
PR = "r1"
PE = "1"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -3,4 +3,4 @@ require xorg-proto-common.inc
PR = "r2"
PE = "1"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -3,4 +3,4 @@ require xorg-proto-common.inc
PR = "r1"
PE = "1"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -3,4 +3,4 @@ require xorg-proto-common.inc
PR = "r1"
PE = "1"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -11,4 +11,4 @@ SRC_URI += "file://unbreak_cross_compile.patch;patch=1 \
RDEPENDS_${PN}-dev = ""
RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})"
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"

View File

@ -14,4 +14,4 @@ DEPENDS = "libtool-cross"
inherit autotools_stage
BBCLASSEXTEND = "native sdk"
BBCLASSEXTEND = "native nativesdk"