Adjust the way we handle our BUILD vs HOST vs TARGET.
authorChris Larson <clarson@kergoth.com>
Thu, 18 Sep 2003 19:38:04 +0000 (19:38 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 18 Sep 2003 19:38:04 +0000 (19:38 +0000)
BKrev: 3f6a099cJfKoPCEz0cqWUDlnW4duuw

12 files changed:
content/cross-binutils-2.13.2.oe
content/cross-binutils-2.14.90.0.6.oe
content/cross-binutils-2.14.oe
content/cross-gcc-3.3.1.oe
content/cross-gcc-initial-3.3.1.oe
content/fakeroot-0.7.5.oe
content/fakeroot-buildarch-0.7.5.oe
content/ipkg-buildarch-0.99.84.oe
content/ipkg-buildarch-0.99.91.oe
content/ipkg-utils-1.0_cvs.oe
content/ipkg-utils-buildarch-1.0_cvs.oe [new file with mode: 0644]
content/mtd-buildarch.oe

index 6003e3e..aa174e1 100644 (file)
@@ -8,20 +8,9 @@ PROVIDES="virtual/${ARCH}-${OS}-binutils"
 SRC_URI="ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.13.2.tar.gz"
 S = ${WORKDIR}/binutils-${PV}
 
-OLDOS := ${OS}
-OLDARCH := ${ARCH}
 CROSS_DIR := ${CROSS_DIR}
-inherit noncross autotools
-
-do_configure() {
-       ./configure --prefix=${CROSS_DIR} --target=${OLDARCH}-${OLDOS}
-}
+prefix=${CROSS_DIR}
+exec_prefix=${prefix}
+inherit cross autotools
 
 EXTRA_OEMAKE =
-do_compile() {
-       oe_runmake
-}
-
-do_install() {
-       oe_runmake install
-}
index c8e1866..68f0ee1 100644 (file)
@@ -3,20 +3,9 @@ PROVIDES = virtual/${OLDARCH}-${OLDOS}-binutils
 SRC_URI = http://ftp.kernel.org/pub/linux/devel/binutils/binutils-${PV}.tar.gz
 S = ${WORKDIR}/binutils-${PV}
 
-OLDOS := ${OS}
-OLDARCH := ${ARCH}
 CROSS_DIR := ${CROSS_DIR}
-inherit noncross autotools
-
-do_configure() {
-       ./configure --prefix=${CROSS_DIR} --target=${OLDARCH}-${OLDOS}
-}
+prefix=${CROSS_DIR}
+exec_prefix=${prefix}
+inherit cross autotools
 
 EXTRA_OEMAKE =
-do_compile() {
-       oe_runmake
-}
-
-do_install() {
-       oe_runmake install
-}
index 7fcdfd7..d697538 100644 (file)
@@ -8,20 +8,9 @@ PROVIDES="virtual/${ARCH}-${OS}-binutils"
 SRC_URI="${GNU_MIRROR}/binutils/binutils-${PV}.tar.gz"
 S = ${WORKDIR}/binutils-${PV}
 
-OLDOS := ${OS}
-OLDARCH := ${ARCH}
 CROSS_DIR := ${CROSS_DIR}
-inherit noncross autotools
-
-do_configure() {
-       ./configure --prefix=${CROSS_DIR} --target=${OLDARCH}-${OLDOS}
-}
+prefix=${CROSS_DIR}
+exec_prefix=${prefix}
+inherit cross autotools
 
 EXTRA_OEMAKE =
-do_compile() {
-       oe_runmake
-}
-
-do_install() {
-       oe_runmake install
-}
index a2022ee..4915a13 100644 (file)
@@ -3,27 +3,21 @@ PROVIDES="virtual/${OLDARCH}-${OLDOS}-gcc"
 SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}.tar.gz
 S = ${WORKDIR}/gcc-${PV}
 
-OLDOS := ${OS}
-OLDARCH := ${ARCH}
 CROSS_DIR := ${CROSS_DIR}
-inherit noncross autotools
+prefix=${CROSS_DIR}
+exec_prefix=${prefix}
+inherit cross autotools
 
-EXTRA_OECONF = --with-gxx-include-dir=${CROSS_DIR}/include/c++ \
-               --enable-shared \
-               --enable-threads
+EXTRA_OEMAKE =
+EXTRA_OECONF = --oldincludedir=${prefix}/include --enable-shared \
+              --with-gxx-include-dir=${CROSS_DIR}/include/c++ \
+              --enable-shared \
+              --enable-threads
 tmake_file = gcc/config/${OLDARCH}/t-linux
 
-do_configure() {
-       ./configure --target=${OLDARCH}-${OLDOS} --prefix=${CROSS_DIR} \
-                   --with-gnu-ld --oldincludedir=${CROSS_DIR}/include \
-                   --enable-shared ${EXTRA_OECONF}     
+do_configure_append() {
        touch ${tmake_file}
        mv ${tmake_file} > ${tmake_file}.tmp
        cat ${tmake_file}.tmp | sed -e's/-Dinhibit_libc -D__gthr_posix_h//g' > ${tmake_file}
        rm -f ${tmake_file}.tmp
 }
-
-EXTRA_OEMAKE =
-do_compile() {
-       oe_runmake
-}
index e69de29..573410e 100644 (file)
@@ -0,0 +1,16 @@
+include cross-gcc-${PV}.oe
+PN:=${PN}-initial
+
+EXTRA_OECONF = --oldincludedir=${prefix}/include --enable-shared \
+              --enable-languages=c \
+              --disable-shared \
+              --disable-threads
+
+do_configure_append () {
+       if (grep -q TARGET_LIBGCC2_CFLAGS ${tmake_file}); then
+               perl -pi -e 's/^(TARGET_LIBGCC2_CFLAGS.*)/$$1 -Dinhibit_libc -D__gthr_posix_h/' ${tmake_file}
+       else
+               echo 'TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -D__gthr_posix_h' >> ${tmake_file}
+       fi
+       echo 'T_CFLAGS = -Dinhibit_libc -D__gthr_posix_h' >> ${tmake_file}
+}
index 147be45..f031a52 100644 (file)
@@ -1,4 +1,4 @@
 SRC_URI := ${DEBIAN_MIRROR}/main/f/fakeroot/${PN}_${PV}.tar.gz
-S := ${WORKDIR}/${P}
+S = ${WORKDIR}/${P}
 
 inherit autotools
index f05ce23..ba44127 100644 (file)
@@ -1,4 +1,4 @@
-inherit noncross
+inherit native
 include fakeroot-${PV}.oe
-S := ${S}
-PN=fakeroot-buildarch
+PN_append=-buildarch
+S = ${WORKDIR}/fakeroot-${PV}
index eaad1bf..f28a6bf 100644 (file)
@@ -6,8 +6,8 @@ MAINTAINER="Chris Larson <kergoth@handhelds.org>"
 LICENSE="GPL"
 #DEPENDS=virtual/libc
 
-SRC_URI="cvs://anoncvs:anoncvs@192.58.209.91/cvs;module=ipkg-utils"
-S="${WORKDIR}/${PN}"
+SRC_URI:="cvs://anoncvs:anoncvs@192.58.209.91/cvs;module=ipkg-utils"
+S:="${WORKDIR}/${PN}"
 
 inherit autotools
 
diff --git a/content/ipkg-utils-buildarch-1.0_cvs.oe b/content/ipkg-utils-buildarch-1.0_cvs.oe
new file mode 100644 (file)
index 0000000..e69de29
index e69de29..4839c9c 100644 (file)
@@ -0,0 +1,11 @@
+inherit native
+include mtd.oe
+PN=mtd-buildarch
+
+do_stage () {
+       for binary in ftl_format erase eraseall nanddump doc_loadbios \
+               mkfs.jffs ftl_check mkfs.jffs2 lock unlock einfo mtd_debug \
+               fcp nandwrite jffs2dump; do
+               install -m 0755 $binary ${STAGING_BINDIR}/
+       done
+}