]> git.openpandora.org Git - openembedded.git/commitdiff
gcc: Move more common variables to gcc-common.inc (BINV, gcclibdir, use DEBIANNAME...
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 15 Mar 2008 17:24:33 +0000 (17:24 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sat, 15 Mar 2008 17:24:33 +0000 (17:24 +0000)
packages/gcc/gcc-common.inc
packages/gcc/gcc-package-target.inc
packages/gcc/gcc3-build.inc

index 36a491af7238c5eef058520f6d18cabd809f804e..5bb46e1f9ba0ec6848fa8e05a75dca7903477998 100644 (file)
@@ -12,3 +12,12 @@ def get_gcc_fpu_setting(bb, d):
         return "--with-float=soft"
     return ""
 
+# We really need HOST_SYS here for some packages and TARGET_SYS for others.
+# For now, libgcc is most important so we fix for that - RP.
+SHLIBSDIR = "${STAGING_DIR}/${TARGET_SYS}/shlibs"
+
+DEBIANNAME_libgcc = "libgcc1"
+
+# Some default values
+gcclibdir = "${libdir}/gcc"
+BINV = "${PV}"
index 2976d58d0575c4af46d8b23da2d5bc8d85b4138e..0e03f29958dd0f81ab47c0d85697f1a85346bc93 100644 (file)
@@ -1,6 +1,3 @@
-gcclibdir ?= "${libdir}/gcc"
-BINV ?= "${PV}"
-
 PACKAGES = "\
   libgcc ${PN} ${PN}-symlinks \
   g++ g++-symlinks \
@@ -14,10 +11,6 @@ PACKAGES = "\
   ${PN}-doc \
 "
 
-# We really need HOST_SYS here for some packages and TARGET_SYS for others.
-# For now, libgcc is most important so we fix for that - RP.
-SHLIBSDIR = "${STAGING_DIR}/${TARGET_SYS}/shlibs"
-
 FILES_${PN} = "\
   ${bindir}/${TARGET_PREFIX}gcc \
   ${bindir}/${TARGET_PREFIX}gccbug \
@@ -101,13 +94,6 @@ FILES_${PN}-doc = "\
   ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
 "
 
-python do_package() {
-    if bb.data.getVar('DEBIAN_NAMES', d, 1):
-        bb.data.setVar('PKG_libgcc', 'libgcc1', d)
-    bb.build.exec_func('package_do_package', d)
-}
-
-
 do_install () {
        autotools_do_install
 
index a6f7d3b1f81664db0cb8b20cca19e4aa1991ef47..57af41d9262ea56346ed32e0663d8d40617a84a7 100644 (file)
@@ -5,10 +5,8 @@ ${GNU_MIRROR}/gcc/releases/    http://gcc.get-software.com/releases/
 ${GNU_MIRROR}/gcc/     http://gcc.get-software.com/releases/
 }
 
-gcclibdir ?= "${libdir}/gcc"
 S = "${WORKDIR}/gcc-${PV}"
 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
-BINV ?= "${PV}"
 
 # gcj doesn't work on some architectures
 JAVA ?= ",java"