From 6b639b16f3529b6b3c928ff79716fc12b6f28f53 Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Fri, 14 Mar 2008 08:18:43 +0000 Subject: at32stk100, atngw100: fix the SERIAL_CONSOLE setting for the AT32STK1000 and ATNGW100 boards to properly use the first serial port, otherwise getty will bail with an error and no login is available on the serial port. --- conf/machine/at32stk1000.conf | 2 +- conf/machine/atngw100.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/machine/at32stk1000.conf b/conf/machine/at32stk1000.conf index 50e7138854..23c8942ab2 100644 --- a/conf/machine/at32stk1000.conf +++ b/conf/machine/at32stk1000.conf @@ -14,7 +14,7 @@ USE_VT = "0" MACHINE_FEATURES = "kernel26 alsa ext2 usbgadget touchscreen screen" # used by sysvinit_2 -SERIAL_CONSOLE = "115200" +SERIAL_CONSOLE = "115200 ttyS0" # used by some images IMAGE_FSTYPES ?= "jffs2" diff --git a/conf/machine/atngw100.conf b/conf/machine/atngw100.conf index 67c350bd97..77f9fdf34e 100644 --- a/conf/machine/atngw100.conf +++ b/conf/machine/atngw100.conf @@ -13,7 +13,7 @@ MACHINE_FEATURES = "kernel26 ext2 usbgadget" PREFERRED_PROVIDER_virtual/kernel = "linux" # used by sysvinit_2 -SERIAL_CONSOLE = "115200" +SERIAL_CONSOLE = "115200 ttyS0" # used by some images ROOT_FLASH_SIZE = "8" -- cgit v1.2.3 From 6631ab02635a9f6694b20e2ccd10db64d42628ed Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Fri, 14 Mar 2008 08:21:07 +0000 Subject: uclibc.inc: Fix issue with building ld-uClibc-0.9.29.so (from uclibc-0.9.29). This keeps OE from overriding the compilation flags uClibc would naturally want to use. This allows OE to build a working ld-uClibc.so for the AVR32. Not sure why this was overriding the compilation flags, or what ripple effects taking out the override has on other platforms. --- packages/uclibc/uclibc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uclibc/uclibc.inc b/packages/uclibc/uclibc.inc index 5965c0b8bd..3c8a90c589 100644 --- a/packages/uclibc/uclibc.inc +++ b/packages/uclibc/uclibc.inc @@ -70,7 +70,7 @@ UCLIBC_STAGE_PREFIX = "${STAGING_DIR_HOST}${layout_prefix}" # do_stage barfs on a CC with whitepspace, therefore put the 'HOST_CC_ARCH' in # the CFLAGS (for when building the utils). -OEMAKE_NO_CC = "'OPTIMIZATION=' 'CPU_CFLAGS=${CFLAGS}' 'STRIPTOOL=true' 'LD=${LD}' \ +OEMAKE_NO_CC = "'STRIPTOOL=true' 'LD=${LD}' \ 'LOCALE_DATA_FILENAME=${UCLIBC_LOCALE_FILE}'" EXTRA_OEMAKE = "${OEMAKE_NO_CC} 'CC=${CC}'" EXTRA_OEMAKE_task_do_populate_staging = "${OEMAKE_NO_CC}" -- cgit v1.2.3 From a890310963ca7107a874b68008e91e326c808d46 Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Fri, 14 Mar 2008 08:23:30 +0000 Subject: uclibc 0.9.29: Add avr32/uClibc.machine for uClibc-0.9.29. With this patch you should now be able to build uClibc 0.9.29 for the AVR32. Most of the necessary patches to uClibc were already in OE, just the uClibc.machine file was missing. --- packages/uclibc/uclibc-0.9.29/avr32/.mtn2git_empty | 0 packages/uclibc/uclibc-0.9.29/avr32/uClibc.machine | 50 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 packages/uclibc/uclibc-0.9.29/avr32/.mtn2git_empty create mode 100644 packages/uclibc/uclibc-0.9.29/avr32/uClibc.machine diff --git a/packages/uclibc/uclibc-0.9.29/avr32/.mtn2git_empty b/packages/uclibc/uclibc-0.9.29/avr32/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/uclibc/uclibc-0.9.29/avr32/uClibc.machine b/packages/uclibc/uclibc-0.9.29/avr32/uClibc.machine new file mode 100644 index 0000000000..d8d2416b90 --- /dev/null +++ b/packages/uclibc/uclibc-0.9.29/avr32/uClibc.machine @@ -0,0 +1,50 @@ +# +# Automatically generated make config: don't edit +# +# TARGET_alpha is not set +# TARGET_arm is not set +TARGET_avr32=y +# TARGET_bfin is not set +# TARGET_cris is not set +# TARGET_e1 is not set +# TARGET_frv is not set +# TARGET_h8300 is not set +# TARGET_i386 is not set +# TARGET_i960 is not set +# TARGET_m68k is not set +# TARGET_microblaze is not set +# TARGET_mips is not set +# TARGET_nios is not set +# TARGET_nios2 is not set +# TARGET_powerpc is not set +# TARGET_sh is not set +# TARGET_sh64 is not set +# TARGET_sparc is not set +# TARGET_v850 is not set +# TARGET_x86_64 is not set + +# +# Target Architecture Features and Options +# +HAVE_ELF=y +TARGET_ARCH="avr32" +ARCH_SUPPORTS_BIG_ENDIAN=y +UCLIBC_COMPLETELY_PIC=y +CONFIG_AP7000=y +LINKRELAX=y +# ARCH_LITTLE_ENDIAN is not set +ARCH_BIG_ENDIAN=y +# ARCH_HAS_NO_MMU is not set +ARCH_HAS_MMU=y +UCLIBC_HAS_FLOATS=y +UCLIBC_HAS_FPU=n +UCLIBC_HAS_SOFT_FLOAT=y +DO_C99_MATH=y +C_SYMBOL_PREFIX="" +KERNEL_HEADERS="Dummy value, correct value substituted by uclibc.inc" +HAVE_DOT_CONFIG=y + + + + + -- cgit v1.2.3 From 09b9a3e7a80a9fde44c14592a4d870271affb2ff Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Fri, 14 Mar 2008 08:26:43 +0000 Subject: uclibc 0.9.29: Fix issue with AVR32 optimized string routines in uClibc. bzero() would not generate any code before. uClibc-0.9.29-avr32-bzero.patch was submitted to the uclibc mailing list on 2008-03-13. --- packages/uclibc/uclibc-0.9.29/uClibc-0.9.29-avr32-bzero.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/uclibc/uclibc-0.9.29/uClibc-0.9.29-avr32-bzero.patch diff --git a/packages/uclibc/uclibc-0.9.29/uClibc-0.9.29-avr32-bzero.patch b/packages/uclibc/uclibc-0.9.29/uClibc-0.9.29-avr32-bzero.patch new file mode 100644 index 0000000000..8d6aba15a1 --- /dev/null +++ b/packages/uclibc/uclibc-0.9.29/uClibc-0.9.29-avr32-bzero.patch @@ -0,0 +1,11 @@ +--- uClibc-0.9.29-orig/libc/string/avr32/bzero.S 2008-03-10 15:02:14.000000000 -0500 ++++ uClibc-0.9.29/libc/string/avr32/bzero.S 2008-03-10 15:05:39.000000000 -0500 +@@ -6,6 +6,8 @@ + * archive for more details. + */ + ++#include ++ + #ifdef __UCLIBC_SUSV3_LEGACY__ + + .text -- cgit v1.2.3 From 9644cfd5a08a8b4a839ffb297f9912ba2f8e88ca Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Fri, 14 Mar 2008 08:29:57 +0000 Subject: gcc 4.2.1: update avr32 patches --- packages/gcc/gcc-cross_4.2.1.bb | 2 +- packages/gcc/gcc_4.2.1.bb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gcc/gcc-cross_4.2.1.bb b/packages/gcc/gcc-cross_4.2.1.bb index 3ee8fbacc2..cd75138f0c 100644 --- a/packages/gcc/gcc-cross_4.2.1.bb +++ b/packages/gcc/gcc-cross_4.2.1.bb @@ -5,7 +5,7 @@ inherit cross FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}" # NOTE: split PR. If the main .oe changes something that affects its *build* # remember to increment this one too. -PR = "r11" +PR = "r12" DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc gmp-native mpfr-native" PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" diff --git a/packages/gcc/gcc_4.2.1.bb b/packages/gcc/gcc_4.2.1.bb index dac620397b..2e74e99ab4 100644 --- a/packages/gcc/gcc_4.2.1.bb +++ b/packages/gcc/gcc_4.2.1.bb @@ -2,7 +2,7 @@ DESCRIPTION = "The GNU cc and gcc C compilers." HOMEPAGE = "http://www.gnu.org/software/gcc/" SECTION = "devel" LICENSE = "GPL" -PR = "r8" +PR = "r9" inherit autotools gettext @@ -42,7 +42,7 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://pr34130.patch;patch=1 \ " -SRC_URI_avr32 = " http://ewi546.ewi.utwente.nl/tmp/avr32-gcc-4.2.1-atmel.1.0.1.tar.gz \ +SRC_URI_avr32 = " http://ewi546.ewi.utwente.nl/tmp/avr32-gcc-4.2.1-atmel.1.0.3.tar.gz \ file://100-uclibc-conf.patch;patch=1 \ file://103-uclibc-conf-noupstream.patch;patch=1 \ file://200-uclibc-locale.patch;patch=1 \ -- cgit v1.2.3 From 3e3d310a7640121017ae8eca7e86dbd64530c3da Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Fri, 14 Mar 2008 08:31:31 +0000 Subject: angstrom 2008: bump avr32 toolchain --- conf/distro/angstrom-2008.1.conf | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/conf/distro/angstrom-2008.1.conf b/conf/distro/angstrom-2008.1.conf index 61b8e793d0..8647e3ceaf 100644 --- a/conf/distro/angstrom-2008.1.conf +++ b/conf/distro/angstrom-2008.1.conf @@ -114,16 +114,13 @@ require conf/distro/include/preferred-e-versions.inc require conf/distro/include/preferred-xorg-versions-X11R7.3.inc #avr32 only has patches for binutils 2.17 and gcc 4.1.2 in OE -PREFERRED_VERSION_gcc_avr32 = "4.1.2" -PREFERRED_VERSION_gcc-cross_avr32 = "4.1.2" -PREFERRED_VERSION_gcc-cross-sdk_avr32 = "4.1.2" -PREFERRED_VERSION_gcc-cross-initial_avr32 = "4.1.2" +PREFERRED_VERSION_gcc_avr32 = "4.2.1" +PREFERRED_VERSION_gcc-cross_avr32 = "4.2.1" +PREFERRED_VERSION_gcc-cross-sdk_avr32 = "4.2.1" +PREFERRED_VERSION_gcc-cross-initial_avr32 = "4.2.1" PREFERRED_VERSION_binutils_avr32 = "2.17" PREFERRED_VERSION_binutils-cross_avr32 = "2.17" PREFERRED_VERSION_binutils-cross-sdk_avr32 = "2.17" -#there's is no avr32 patch for 0.9.29 -PREFERRED_VERSION_uclibc_avr32 = "0.9.28" -PREFERRED_VERSION_uclibc-initial_avr32 = "0.9.28" # Virtuals: PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross" -- cgit v1.2.3 From 9af66ec4a2156df8a05cfd3c56c0b88e7bac3eff Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 14 Mar 2008 09:49:19 +0000 Subject: siteinfo bbclass: remove avr32/glibc entries - there never will be avr32 support in glibc --- classes/siteinfo.bbclass | 1 - 1 file changed, 1 deletion(-) diff --git a/classes/siteinfo.bbclass b/classes/siteinfo.bbclass index 701777bbcc..0d31be4dc4 100644 --- a/classes/siteinfo.bbclass +++ b/classes/siteinfo.bbclass @@ -30,7 +30,6 @@ def get_siteinfo_list(d): "arm-linux-gnueabi": "endian-little bit-32 common-linux common-glibc arm-common arm-linux",\ "arm-linux-uclibc": "endian-little bit-32 common-linux common-uclibc arm-common",\ "arm-linux-uclibcgnueabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ - "avr32-linux": "endian-big bit-32 common-linux common-glibc avr32-common",\ "avr32-linux-uclibc": "endian-big bit-32 common-linux common-uclibc avr32-common",\ "bfin-uclinux-uclibc": "endian-little bit-32 common-uclibc bfin-common",\ "i386-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ -- cgit v1.2.3 From eae9a1ecd8003375e1fc89ee5fec803998384abf Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 14 Mar 2008 09:50:57 +0000 Subject: avr32 site files: add more entries --- site/avr32-common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/avr32-common b/site/avr32-common index b5b176cad7..8735fdfb5a 100644 --- a/site/avr32-common +++ b/site/avr32-common @@ -1,7 +1,8 @@ -glib_cv_stack_grows=${glib_cv_stack_grows=no} +#glib glib_cv_stack_grows=${glib_cv_stack_grows=no} ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=yes} glib_cv_uscore=${glib_cv_uscore=no} ac_cv_func_setpgrp_void=${ac_cv_func_setpgrp_void=yes} +ac_cv_func_posix_getgrgid_r=${ac_cv_func_getgrgid_r=yes} #dbus-glib ac_cv_func_posix_getpwnam_r=${ac_cv_func_posix_getpwnam_r=yes} -- cgit v1.2.3