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 36a491a..5bb46e1 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 2976d58..0e03f29 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 a6f7d3b..57af41d 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"