Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] boot/at91bootstrap: remove package
@ 2024-06-03 11:55 Peter Korsgaard
  2024-06-03 11:55 ` [Buildroot] [PATCH 2/2] boot/at91dataflashboot: " Peter Korsgaard
  2024-06-03 20:56 ` [Buildroot] [PATCH 1/2] boot/at91bootstrap: " Yann E. MORIN
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Korsgaard @ 2024-06-03 11:55 UTC (permalink / raw)
  To: buildroot

The upstream is no longer available, no defconfigs use it and the package
has been replaced 12 years ago with at91bootstrap3 with commit ca0d69c61cc
(at91bootstrap3: new package), so remove it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 Config.in.legacy                              |   7 +
 boot/Config.in                                |   1 -
 boot/at91bootstrap/0001-eabi-fix.patch        | 334 ------------------
 .../0002-gcc-4.6.x-ldscript-fix.patch         |  29 --
 .../0003-u-boot-relocation-fix.patch          | 284 ---------------
 boot/at91bootstrap/Config.in                  |  49 ---
 boot/at91bootstrap/at91bootstrap.hash         |   3 -
 boot/at91bootstrap/at91bootstrap.mk           |  55 ---
 8 files changed, 7 insertions(+), 755 deletions(-)
 delete mode 100644 boot/at91bootstrap/0001-eabi-fix.patch
 delete mode 100644 boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch
 delete mode 100644 boot/at91bootstrap/0003-u-boot-relocation-fix.patch
 delete mode 100644 boot/at91bootstrap/Config.in
 delete mode 100644 boot/at91bootstrap/at91bootstrap.hash
 delete mode 100644 boot/at91bootstrap/at91bootstrap.mk

diff --git a/Config.in.legacy b/Config.in.legacy
index b5a87d4e88..7e5bc28bae 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2024.05"
 
+config BR2_TARGET_AT91BOOTSTRAP
+	bool "at91bootstrap removed"
+	select BR2_LEGACY
+	help
+	  Upstream for at91bootstrap 1.x is no longer available and
+	  has been replaced by at91bootstrap3.
+
 config BR2_PACKAGE_ON2_8170_MODULES
 	bool "on2-8170-modules removed"
 	select BR2_LEGACY
diff --git a/boot/Config.in b/boot/Config.in
index 87e1b7c00e..3e00d28e56 100644
--- a/boot/Config.in
+++ b/boot/Config.in
@@ -1,7 +1,6 @@
 menu "Bootloaders"
 
 source "boot/afboot-stm32/Config.in"
-source "boot/at91bootstrap/Config.in"
 source "boot/at91bootstrap3/Config.in"
 source "boot/at91dataflashboot/Config.in"
 source "boot/arm-trusted-firmware/Config.in"
diff --git a/boot/at91bootstrap/0001-eabi-fix.patch b/boot/at91bootstrap/0001-eabi-fix.patch
deleted file mode 100644
index eab3c20928..0000000000
--- a/boot/at91bootstrap/0001-eabi-fix.patch
+++ /dev/null
@@ -1,334 +0,0 @@
-When using an EABI toolchain, the default compilation generates
-references to __aeabi_unwind_cpp_pr0(). This symbol is defined in
-libgcc, but we don't want to use it for a bootloader.
-
-Therefore, this patch passes some additional CFLAGS to disable the
-generation of such references by avoiding unwind tables, exceptions,
-etc.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- board/at91cap9adk/dataflash/Makefile      |    2 +-
- board/at91cap9adk/norflash/Makefile       |    2 +-
- board/at91cap9stk/nandflash/Makefile      |    2 +-
- board/at91sam9260ek/dataflash/Makefile    |    2 +-
- board/at91sam9260ek/nandflash/Makefile    |    2 +-
- board/at91sam9261ek/dataflash/Makefile    |    2 +-
- board/at91sam9261ek/nandflash/Makefile    |    2 +-
- board/at91sam9263ek/dataflash/Makefile    |    2 +-
- board/at91sam9263ek/nandflash/Makefile    |    2 +-
- board/at91sam9g10ek/dataflash/Makefile    |    2 +-
- board/at91sam9g10ek/nandflash/Makefile    |    2 +-
- board/at91sam9g20ek/dataflash/Makefile    |    2 +-
- board/at91sam9g20ek/nandflash/Makefile    |    2 +-
- board/at91sam9g45ekes/nandflash/Makefile  |    2 +-
- board/at91sam9m10ekes/dataflash/Makefile  |    2 +-
- board/at91sam9m10ekes/nandflash/Makefile  |    2 +-
- board/at91sam9m10g45ek/dataflash/Makefile |    2 +-
- board/at91sam9m10g45ek/nandflash/Makefile |    2 +-
- board/at91sam9rlek/dataflash/Makefile     |    2 +-
- board/at91sam9rlek/nandflash/Makefile     |    2 +-
- board/at91sam9xeek/dataflash/Makefile     |    2 +-
- board/at91sam9xeek/nandflash/Makefile     |    2 +-
- lib/Makefile                              |    2 +-
- 23 files changed, 23 insertions(+), 23 deletions(-)
-
-Index: Bootstrap-v1.16/board/at91cap9adk/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91cap9adk/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91cap9adk/dataflash/Makefile
-@@ -34,7 +34,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91cap9adk/norflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91cap9adk/norflash/Makefile
-+++ Bootstrap-v1.16/board/at91cap9adk/norflash/Makefile
-@@ -34,7 +34,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91cap9stk/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91cap9stk/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91cap9stk/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- 
-Index: Bootstrap-v1.16/board/at91sam9260ek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9260ek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9260ek/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9260ek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9260ek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9260ek/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9261ek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9261ek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9261ek/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9261ek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9261ek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9261ek/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9263ek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9263ek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9263ek/dataflash/Makefile
-@@ -34,7 +34,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9263ek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9263ek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9263ek/nandflash/Makefile
-@@ -33,7 +33,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -O0 -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -O0 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9g10ek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9g10ek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9g10ek/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9g10ek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9g10ek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9g10ek/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9g20ek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9g20ek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9g20ek/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9g20ek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9g20ek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9g20ek/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9g45ekes/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9g45ekes/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9g45ekes/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9m10ekes/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9m10ekes/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9m10ekes/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9m10ekes/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9m10ekes/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9m10ekes/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9m10g45ek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9m10g45ek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9m10g45ek/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9m10g45ek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9m10g45ek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9m10g45ek/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9rlek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9rlek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9rlek/dataflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9rlek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9rlek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9rlek/nandflash/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9xeek/dataflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9xeek/dataflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9xeek/dataflash/Makefile
-@@ -38,7 +38,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/board/at91sam9xeek/nandflash/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/board/at91sam9xeek/nandflash/Makefile
-+++ Bootstrap-v1.16/board/at91sam9xeek/nandflash/Makefile
-@@ -38,7 +38,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
-Index: Bootstrap-v1.16/lib/Makefile
-===================================================================
---- Bootstrap-v1.16.orig/lib/Makefile
-+++ Bootstrap-v1.16/lib/Makefile
-@@ -37,7 +37,7 @@
- SIZE=$(CROSS_COMPILE)size
- OBJCOPY=$(CROSS_COMPILE)objcopy
- OBJDUMP=$(CROSS_COMPILE)objdump
--CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
-+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
- ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
- 
- # Linker flags.
diff --git a/boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch b/boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch
deleted file mode 100644
index e4ed04e865..0000000000
--- a/boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From b783d1f9bf985c0981e755bd2c13e091e9d6837f Mon Sep 17 00:00:00 2001
-From: Gregory Hermant <gregory.hermant@calao-systems.com>
-Date: Tue, 6 Nov 2012 09:38:50 +0100
-Subject: [PATCH] at91bootstrap: fix overlap linker issue
-
-The linker script of the at91bootstrap package has to be modified when
-built from gcc-4.6.x version. Indeed a section named text.startup is
-created and has to be added into the text section.
-
-Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
----
- elf32-littlearm.lds |    1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds
-index a33952f..4f3ba25 100644
---- a/elf32-littlearm.lds
-+++ b/elf32-littlearm.lds
-@@ -7,6 +7,7 @@ SECTIONS
- 	.text : { 
- 		_stext = .;
- 		*(.text)
-+		*(.text*)
- 		*(.rodata)                 /* read-only data (constants) */
- 		*(.rodata*)
- 		. = ALIGN(4);
--- 
-1.7.9.5
-
diff --git a/boot/at91bootstrap/0003-u-boot-relocation-fix.patch b/boot/at91bootstrap/0003-u-boot-relocation-fix.patch
deleted file mode 100644
index 0c9b9114cb..0000000000
--- a/boot/at91bootstrap/0003-u-boot-relocation-fix.patch
+++ /dev/null
@@ -1,284 +0,0 @@
-From d4e4a1aad559e35d84b445d1379be94ad036984e Mon Sep 17 00:00:00 2001
-From: Alexandre Belloni <alexandre.belloni@piout.net>
-Date: Thu, 25 Oct 2012 22:57:14 +0200
-Subject: [PATCH] u-boot relocation fix
-
-Every AT91SAM plaforms were broken between 2010.12 and 2011.03 because
-of the relocation changes.
-
-We have to get JUMP_ADDR consistant with what is used by u-boot
-(CONFIG_SYS_TEXT_BASE).
-
-I didn't know what to do with at91sam9m10g45ek as it doesn't seems to be
-converted yet. But anyway, that means that it is either not working or
-doesn't care so changing it here shouldn't harm.
-
-We also have to increase the IMG_SIZE as u-boot as grown larger than the
-default value. As requested on the u-boot ML, we assume that it could
-be up to 495kB big.
-
-It means that now, you have to flash your kernel at 0x00084000 instead
-of 0x00042000. And so you also have to load it from that adress from
-u-boot.
-
-Then, remember that you could decrease IMG_SIZE to boot faster.
-
-Signed-off-by: Alexandre Belloni <alexandre.belloni@piout.net>
----
- board/at91sam9260ek/dataflash/at91sam9260ek.h      |    4 ++--
- board/at91sam9260ek/nandflash/at91sam9260ek.h      |    2 +-
- board/at91sam9261ek/dataflash/at91sam9261ek.h      |    4 ++--
- board/at91sam9261ek/nandflash/at91sam9261ek.h      |    2 +-
- board/at91sam9263ek/dataflash/at91sam9263ek.h      |    4 ++--
- board/at91sam9263ek/nandflash/at91sam9263ek.h      |    2 +-
- board/at91sam9g10ek/dataflash/at91sam9g10ek.h      |    4 ++--
- board/at91sam9g10ek/nandflash/at91sam9g10ek.h      |    2 +-
- board/at91sam9g20ek/dataflash/at91sam9g20ek.h      |    4 ++--
- board/at91sam9g20ek/nandflash/at91sam9g20ek.h      |    2 +-
- board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h  |    2 +-
- .../at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h  |    2 +-
- board/at91sam9rlek/dataflash/at91sam9rlek.h        |    4 ++--
- board/at91sam9rlek/nandflash/at91sam9rlek.h        |    2 +-
- board/at91sam9xeek/dataflash/at91sam9xeek.h        |    4 ++--
- board/at91sam9xeek/nandflash/at91sam9xeek.h        |    2 +-
- 16 files changed, 23 insertions(+), 23 deletions(-)
-
-diff --git a/board/at91sam9260ek/dataflash/at91sam9260ek.h b/board/at91sam9260ek/dataflash/at91sam9260ek.h
-index 1834246..91081a1 100644
---- a/board/at91sam9260ek/dataflash/at91sam9260ek.h
-+++ b/board/at91sam9260ek/dataflash/at91sam9260ek.h
-@@ -74,10 +74,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
- 
- #define MACH_TYPE       0x44B       /* AT91SAM9260-EK */
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9260ek/nandflash/at91sam9260ek.h b/board/at91sam9260ek/nandflash/at91sam9260ek.h
-index 2cac601..f8fdff2 100644
---- a/board/at91sam9260ek/nandflash/at91sam9260ek.h
-+++ b/board/at91sam9260ek/nandflash/at91sam9260ek.h
-@@ -92,7 +92,7 @@
- #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
- 
- #define MACH_TYPE       	0x44B		/* AT91SAM9260-EK */
--#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9261ek/dataflash/at91sam9261ek.h b/board/at91sam9261ek/dataflash/at91sam9261ek.h
-index 8ce30e9..276ba3d 100644
---- a/board/at91sam9261ek/dataflash/at91sam9261ek.h
-+++ b/board/at91sam9261ek/dataflash/at91sam9261ek.h
-@@ -97,10 +97,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
- 
- #define MACH_TYPE       0x350       /* AT91SAM9261-EK */
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9261ek/nandflash/at91sam9261ek.h b/board/at91sam9261ek/nandflash/at91sam9261ek.h
-index badc3ac..e628c97 100644
---- a/board/at91sam9261ek/nandflash/at91sam9261ek.h
-+++ b/board/at91sam9261ek/nandflash/at91sam9261ek.h
-@@ -114,7 +114,7 @@
- #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
- 
- #define MACH_TYPE       	0x350		/* AT91SAM9261-EK */
--#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9263ek/dataflash/at91sam9263ek.h b/board/at91sam9263ek/dataflash/at91sam9263ek.h
-index 5c9da4b..870f9e2 100644
---- a/board/at91sam9263ek/dataflash/at91sam9263ek.h
-+++ b/board/at91sam9263ek/dataflash/at91sam9263ek.h
-@@ -96,10 +96,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 			0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE			0x33900			/* Image Size in DataFlash    */
-+#define	IMG_SIZE			0x7BC00			/* Image Size in DataFlash    */
- 
- #define MACH_TYPE       		0x4B2       		/* AT91SAM9263-EK */
--#define JUMP_ADDR			0x23F00000		/* Final Jump Address 	      */
-+#define JUMP_ADDR			0x21F00000		/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9263ek/nandflash/at91sam9263ek.h b/board/at91sam9263ek/nandflash/at91sam9263ek.h
-index 505afc7..8ab4f46 100644
---- a/board/at91sam9263ek/nandflash/at91sam9263ek.h
-+++ b/board/at91sam9263ek/nandflash/at91sam9263ek.h
-@@ -108,7 +108,7 @@
- #define	IMG_SIZE	0x40000		/* Image Size in NandFlash    */
- 
- #define MACH_TYPE       1202       	/* AT91SAM9263-EK */
--#define JUMP_ADDR	0x23F00000	/* Final Jump Address 	      */
-+#define JUMP_ADDR	0x21F00000	/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
-index b2faf44..f4f556b 100644
---- a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
-+++ b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
-@@ -98,10 +98,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
- 
- #define MACH_TYPE       0x350       /* AT91SAM9261-EK */
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
-index 66c40a3..6c3ecda 100644
---- a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
-+++ b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
-@@ -115,7 +115,7 @@
- #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
- 
- #define MACH_TYPE       	0x350		/* AT91SAM9G10-EK */
--#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
-index eea0439..7fc70d6 100644
---- a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
-+++ b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
-@@ -75,10 +75,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS1 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash */
- 
- #define MACH_TYPE		0x658			/* AT91SAM9G20-EK */
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
-index 31bd499..e797e4d 100644
---- a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
-+++ b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
-@@ -93,7 +93,7 @@
- #define	IMG_SIZE		0x40000			/* Image Size in NandFlash */
- 
- #define MACH_TYPE		0x658			/* AT91SAM9G20-EK */
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
-index a60fd41..5587a00 100644
---- a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
-+++ b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
-@@ -89,7 +89,7 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash */
- 
- #define MACH_TYPE		0x9CD			/* AT91SAM9M10-EKES */
- #define JUMP_ADDR		0x73F00000		/* Final Jump Address */
-diff --git a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
-index 5c726b5..9090097 100644
---- a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
-+++ b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
-@@ -85,7 +85,7 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash */
- 
- #define MACH_TYPE		0x726			/* AT91SAM9M10G45-EK */
- #define JUMP_ADDR		0x73F00000		/* Final Jump Address */
-diff --git a/board/at91sam9rlek/dataflash/at91sam9rlek.h b/board/at91sam9rlek/dataflash/at91sam9rlek.h
-index 05c42dc..150f17e 100644
---- a/board/at91sam9rlek/dataflash/at91sam9rlek.h
-+++ b/board/at91sam9rlek/dataflash/at91sam9rlek.h
-@@ -89,10 +89,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
- 
- #define IMG_ADDRESS 	0x8400		/* Image Address in DataFlash */
--#define	IMG_SIZE	0x33900		/* Image Size in DataFlash    */
-+#define	IMG_SIZE	0x7BC00		/* Image Size in DataFlash    */
- 
- #define MACH_TYPE       1326       	/* AT91SAM9RL-EK */
--#define JUMP_ADDR	0x23F00000	/* Final Jump Address 	      */
-+#define JUMP_ADDR	0x21F00000	/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9rlek/nandflash/at91sam9rlek.h b/board/at91sam9rlek/nandflash/at91sam9rlek.h
-index 656b4ba..594db8f 100644
---- a/board/at91sam9rlek/nandflash/at91sam9rlek.h
-+++ b/board/at91sam9rlek/nandflash/at91sam9rlek.h
-@@ -112,7 +112,7 @@
- #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
- 
- #define MACH_TYPE       1326       		/* AT91SAM9RL-EK */
--#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9xeek/dataflash/at91sam9xeek.h b/board/at91sam9xeek/dataflash/at91sam9xeek.h
-index 27d1822..08e515d 100644
---- a/board/at91sam9xeek/dataflash/at91sam9xeek.h
-+++ b/board/at91sam9xeek/dataflash/at91sam9xeek.h
-@@ -74,10 +74,10 @@
- #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS1 */
- 
- #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
--#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
-+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
- 
- #define MACH_TYPE		0x44B			/* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
-diff --git a/board/at91sam9xeek/nandflash/at91sam9xeek.h b/board/at91sam9xeek/nandflash/at91sam9xeek.h
-index 5dbc63e..9fac7cb 100644
---- a/board/at91sam9xeek/nandflash/at91sam9xeek.h
-+++ b/board/at91sam9xeek/nandflash/at91sam9xeek.h
-@@ -94,7 +94,7 @@
- #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
- 
- #define MACH_TYPE		0x44B			/* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
--#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
-+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
- 
- /* ******************************************************************* */
- /* Application Settings                                                */
--- 
-1.7.9.5
-
diff --git a/boot/at91bootstrap/Config.in b/boot/at91bootstrap/Config.in
deleted file mode 100644
index 0f6430fd8d..0000000000
--- a/boot/at91bootstrap/Config.in
+++ /dev/null
@@ -1,49 +0,0 @@
-config BR2_TARGET_AT91BOOTSTRAP
-	bool "AT91 Bootstrap"
-	depends on BR2_arm926t
-	help
-	  AT91Bootstrap is a first level bootloader for the Atmel AT91
-	  devices. It integrates algorithms for:
-	  - Device initialization such as clock configuration, PIO
-	    settings...
-	  - Peripheral drivers such as PIO, PMC or SDRAMC...
-	  - Physical media algorithm such as DataFlash, NandFlash, NOR
-	    Flash...
-
-if	BR2_TARGET_AT91BOOTSTRAP
-
-config BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR
-	string "custom patch dir"
-	help
-	  If your board requires custom patches, add the path to the
-	  directory containing the patches here. The patches must be
-	  named at91bootstrap-<version>-<something>.patch.
-
-	  Most users may leave this empty
-
-config BR2_TARGET_AT91BOOTSTRAP_BOARD
-	string "Bootstrap board"
-	default ""
-	help
-	  This is used to do a make <board>_config
-
-choice
-	prompt "Boot Memory"
-	default BR2_TARGET_AT91BOOTSTRAP_DATAFLASH
-	help
-	  Select Chip for which AT91 bootstrap should be built
-
-config BR2_TARGET_AT91BOOTSTRAP_DATAFLASH
-	bool "Data Flash"
-
-config BR2_TARGET_AT91BOOTSTRAP_NANDFLASH
-	bool "NAND Flash"
-
-endchoice
-
-config BR2_TARGET_AT91BOOTSTRAP_MEMORY
-	string
-	default	"dataflash"	if	BR2_TARGET_AT91BOOTSTRAP_DATAFLASH
-	default	"nandflash"	if	BR2_TARGET_AT91BOOTSTRAP_NANDFLASH
-
-endif
diff --git a/boot/at91bootstrap/at91bootstrap.hash b/boot/at91bootstrap/at91bootstrap.hash
deleted file mode 100644
index d9f8db8897..0000000000
--- a/boot/at91bootstrap/at91bootstrap.hash
+++ /dev/null
@@ -1,3 +0,0 @@
-# locally computed
-sha256  d66192a274247f4baa39fa932eadf903d7add55641d89d30402f967c4f2282a5  AT91Bootstrap1.16.zip
-sha256  6a3ac5dfcf19e6bac1b1109d30d72818768a3855e2594b84fe2b012b5fe0e77b  include/sdramc.h
diff --git a/boot/at91bootstrap/at91bootstrap.mk b/boot/at91bootstrap/at91bootstrap.mk
deleted file mode 100644
index 385957b5d4..0000000000
--- a/boot/at91bootstrap/at91bootstrap.mk
+++ /dev/null
@@ -1,55 +0,0 @@
-################################################################################
-#
-# at91bootstrap
-#
-################################################################################
-
-AT91BOOTSTRAP_VERSION = 1.16
-AT91BOOTSTRAP_SITE = ftp://www.at91.com/pub/at91bootstrap
-AT91BOOTSTRAP_SOURCE = AT91Bootstrap$(AT91BOOTSTRAP_VERSION).zip
-AT91BOOTSTRAP_LICENSE = BSD-Source-Code
-AT91BOOTSTRAP_LICENSE_FILES = include/sdramc.h
-
-AT91BOOTSTRAP_BOARD = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_BOARD))
-AT91BOOTSTRAP_MEMORY = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_MEMORY))
-AT91BOOTSTRAP_MAKE_SUBDIR = board/$(AT91BOOTSTRAP_BOARD)/$(AT91BOOTSTRAP_MEMORY)
-AT91BOOTSTRAP_BINARY = $(AT91BOOTSTRAP_MAKE_SUBDIR)/$(AT91BOOTSTRAP_MEMORY)_$(AT91BOOTSTRAP_BOARD).bin
-
-AT91BOOTSTRAP_INSTALL_IMAGES = YES
-AT91BOOTSTRAP_INSTALL_TARGET = NO
-
-define AT91BOOTSTRAP_EXTRACT_CMDS
-	$(UNZIP) -d $(BUILD_DIR) $(AT91BOOTSTRAP_DL_DIR)/$(AT91BOOTSTRAP_SOURCE)
-	mv $(BUILD_DIR)/Bootstrap-v$(AT91BOOTSTRAP_VERSION)/* $(@D)
-	rmdir $(BUILD_DIR)/Bootstrap-v$(AT91BOOTSTRAP_VERSION)
-endef
-
-ifneq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR)),)
-define AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES
-	$(APPLY_PATCHES) $(@D) $(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR) \*.patch
-endef
-
-AT91BOOTSTRAP_POST_PATCH_HOOKS += AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES
-endif
-
-# The at91bootstrap Makefile doesn't support customizing
-# CFLAGS/LDFLAGS, so we cheat and pass our custom flags through CC and
-# LD.
-define AT91BOOTSTRAP_BUILD_CMDS
-	$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) \
-		CC="$(TARGET_CC) -fno-stack-protector" \
-		LD="$(TARGET_CC) -fno-PIE" \
-		-C $(@D)/$(AT91BOOTSTRAP_MAKE_SUBDIR)
-endef
-
-define AT91BOOTSTRAP_INSTALL_IMAGES_CMDS
-	cp $(@D)/$(AT91BOOTSTRAP_BINARY) $(BINARIES_DIR)
-endef
-
-$(eval $(generic-package))
-
-ifeq ($(BR2_TARGET_AT91BOOTSTRAP)$(BR_BUILDING),yy)
-ifeq ($(AT91BOOTSTRAP_BOARD),)
-$(error No AT91Bootstrap board name set. Check your BR2_TARGET_AT91BOOTSTRAP_BOARD setting)
-endif
-endif
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] boot/at91dataflashboot: remove package
  2024-06-03 11:55 [Buildroot] [PATCH 1/2] boot/at91bootstrap: remove package Peter Korsgaard
@ 2024-06-03 11:55 ` Peter Korsgaard
  2024-06-03 20:57   ` Yann E. MORIN
  2024-06-03 20:56 ` [Buildroot] [PATCH 1/2] boot/at91bootstrap: " Yann E. MORIN
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2024-06-03 11:55 UTC (permalink / raw)
  To: buildroot

At91dataflashboot is an ancient (2006) fork of at91bootstrap1 specifically
for the Atmel/Microchip AT45 series (dataflash) of serial flashes.

The package hasn't seen any meaningful updates since, is not used by any
defconfigs and at91bootstrap3 nowadays has AT45 support - So remove the
package.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 Config.in.legacy                              |  6 +++
 boot/Config.in                                |  1 -
 .../0001-do-not-install.patch                 | 22 ----------
 boot/at91dataflashboot/0002-eabi-fixes.patch  | 43 -------------------
 boot/at91dataflashboot/Config.in              |  3 --
 boot/at91dataflashboot/at91dataflashboot.hash |  2 -
 boot/at91dataflashboot/at91dataflashboot.mk   | 28 ------------
 7 files changed, 6 insertions(+), 99 deletions(-)
 delete mode 100644 boot/at91dataflashboot/0001-do-not-install.patch
 delete mode 100644 boot/at91dataflashboot/0002-eabi-fixes.patch
 delete mode 100644 boot/at91dataflashboot/Config.in
 delete mode 100644 boot/at91dataflashboot/at91dataflashboot.hash
 delete mode 100644 boot/at91dataflashboot/at91dataflashboot.mk

diff --git a/Config.in.legacy b/Config.in.legacy
index 7e5bc28bae..f0bff5191f 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -153,6 +153,12 @@ config BR2_TARGET_AT91BOOTSTRAP
 	  Upstream for at91bootstrap 1.x is no longer available and
 	  has been replaced by at91bootstrap3.
 
+config BR2_TARGET_AT91DATAFLASHBOOT
+	bool "at91dataflashboot removed"
+	select BR2_LEGACY
+	help
+	  at91dataflashboot has been replaced by at91bootstrap3.
+
 config BR2_PACKAGE_ON2_8170_MODULES
 	bool "on2-8170-modules removed"
 	select BR2_LEGACY
diff --git a/boot/Config.in b/boot/Config.in
index 3e00d28e56..14e0ca65fa 100644
--- a/boot/Config.in
+++ b/boot/Config.in
@@ -2,7 +2,6 @@ menu "Bootloaders"
 
 source "boot/afboot-stm32/Config.in"
 source "boot/at91bootstrap3/Config.in"
-source "boot/at91dataflashboot/Config.in"
 source "boot/arm-trusted-firmware/Config.in"
 source "boot/barebox/Config.in"
 source "boot/beaglev-ddrinit/Config.in"
diff --git a/boot/at91dataflashboot/0001-do-not-install.patch b/boot/at91dataflashboot/0001-do-not-install.patch
deleted file mode 100644
index 41d97ad20e..0000000000
--- a/boot/at91dataflashboot/0001-do-not-install.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Disable the automatic installation of at91dataflashboot since it tries
-to install things to /tftpboot, which is not possible when not
-building as root.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- Makefile |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: at91dataflashboot-1.05/Makefile
-===================================================================
---- at91dataflashboot-1.05.orig/Makefile
-+++ at91dataflashboot-1.05/Makefile
-@@ -40,7 +40,7 @@
- 
- I=config.h com.h dataflash.h embedded_services.h main.h stdio.h include/AT91RM9200.h include/lib_AT91RM9200.h 
- 
--all: 	clean $(BINNAME) $(LSSNAME) install
-+all: 	clean $(BINNAME) $(LSSNAME)
- 	$(SIZE) $(OUTNAME)
- 
- # C objects here
diff --git a/boot/at91dataflashboot/0002-eabi-fixes.patch b/boot/at91dataflashboot/0002-eabi-fixes.patch
deleted file mode 100644
index e38905f7cb..0000000000
--- a/boot/at91dataflashboot/0002-eabi-fixes.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-Get at91dataflashboot to build with EABI toolchains, by providing the
-__aeabi_uidiv and __aeabi_uidivmod symbols. The code is based on
-U-Boot's code.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- _udivsi3.S |   14 ++++++++++++++
- 1 file changed, 14 insertions(+)
-
-Index: DataflashBoot-1.05/_udivsi3.S
-===================================================================
---- DataflashBoot-1.05.orig/_udivsi3.S
-+++ DataflashBoot-1.05/_udivsi3.S
-@@ -12,8 +12,11 @@
- 	.text
- 	.globl	 __udivsi3
- 	.type  __udivsi3       ,function
-+        .globl  __aeabi_uidiv
-+        .type   __aeabi_uidiv ,function
- 	.align	0
-  __udivsi3      :
-+ __aeabi_uidiv:
- 	cmp	divisor, #0
- 	beq	Ldiv0
- 	mov	curbit, #1
-@@ -68,6 +71,17 @@
- 	mov	r0, #0			@ about as wrong as it could be
- 	ldmia	sp!, {pc}
- 	.size  __udivsi3       , . -  __udivsi3
-+
-+.globl __aeabi_uidivmod
-+__aeabi_uidivmod:
-+
-+        stmfd   sp!, {r0, r1, ip, lr}
-+        bl      __aeabi_uidiv
-+        ldmfd   sp!, {r1, r2, ip, lr}
-+        mul     r3, r0, r2
-+        sub     r1, r1, r3
-+        mov     pc, lr
-+
- /* # 235 "libgcc1.S" */
- /* # 320 "libgcc1.S" */
- /* # 421 "libgcc1.S" */
diff --git a/boot/at91dataflashboot/Config.in b/boot/at91dataflashboot/Config.in
deleted file mode 100644
index 8b37d84409..0000000000
--- a/boot/at91dataflashboot/Config.in
+++ /dev/null
@@ -1,3 +0,0 @@
-config BR2_TARGET_AT91DATAFLASHBOOT
-	bool "AT91 DataFlashBoot"
-	depends on BR2_arm && BR2_arm926t
diff --git a/boot/at91dataflashboot/at91dataflashboot.hash b/boot/at91dataflashboot/at91dataflashboot.hash
deleted file mode 100644
index 57df4e5389..0000000000
--- a/boot/at91dataflashboot/at91dataflashboot.hash
+++ /dev/null
@@ -1,2 +0,0 @@
-# locally computed
-sha256  2cfeb6a9236e1a743c8010f05e504dbc92169ef42d9a6cf7948954a577bfc386  DataflashBoot-1.05.tar.bz2
diff --git a/boot/at91dataflashboot/at91dataflashboot.mk b/boot/at91dataflashboot/at91dataflashboot.mk
deleted file mode 100644
index cb329a90df..0000000000
--- a/boot/at91dataflashboot/at91dataflashboot.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-################################################################################
-#
-# at91dataflashboot
-#
-################################################################################
-
-AT91DATAFLASHBOOT_VERSION = 1.05
-AT91DATAFLASHBOOT_SOURCE = DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).tar.bz2
-AT91DATAFLASHBOOT_SITE = ftp://www.at91.com/pub/buildroot
-
-AT91DATAFLASHBOOT_INSTALL_TARGET = NO
-AT91DATAFLASHBOOT_INSTALL_IMAGES = YES
-
-AT91DATAFLASHBOOT_CFLAGS = $(TARGET_CFLAGS) -fno-stack-protector
-ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
-AT91DATAFLASHBOOT_CFLAGS += -marm
-endif
-
-define AT91DATAFLASHBOOT_BUILD_CMDS
-	make -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) \
-		CFLAGS="$(AT91DATAFLASHBOOT_CFLAGS)"
-endef
-
-define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS
-	cp $(@D)/DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).bin $(BINARIES_DIR)
-endef
-
-$(eval $(generic-package))
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/2] boot/at91bootstrap: remove package
  2024-06-03 11:55 [Buildroot] [PATCH 1/2] boot/at91bootstrap: remove package Peter Korsgaard
  2024-06-03 11:55 ` [Buildroot] [PATCH 2/2] boot/at91dataflashboot: " Peter Korsgaard
@ 2024-06-03 20:56 ` Yann E. MORIN
  2024-06-03 21:27   ` Peter Korsgaard
  1 sibling, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2024-06-03 20:56 UTC (permalink / raw)
  To: Peter Korsgaard; +Cc: buildroot

Peter, All,

On 2024-06-03 13:55 +0200, Peter Korsgaard spake thusly:
> The upstream is no longer available, no defconfigs use it and the package
> has been replaced 12 years ago with at91bootstrap3 with commit ca0d69c61cc
> (at91bootstrap3: new package), so remove it.
> 
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
>  Config.in.legacy                              |   7 +
>  boot/Config.in                                |   1 -
>  boot/at91bootstrap/0001-eabi-fix.patch        | 334 ------------------
>  .../0002-gcc-4.6.x-ldscript-fix.patch         |  29 --
>  .../0003-u-boot-relocation-fix.patch          | 284 ---------------

    $ ./utils/docker-run make check-package
    .checkpackageignore:99: ignored file boot/at91bootstrap/0001-eabi-fix.patch is missing
    .checkpackageignore:100: ignored file boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch is missing
    .checkpackageignore:101: ignored file boot/at91bootstrap/0003-u-boot-relocation-fix.patch is missing

Applied to master with that fixed, thanks.

Regards,
Yann E. MORIN.

>  boot/at91bootstrap/Config.in                  |  49 ---
>  boot/at91bootstrap/at91bootstrap.hash         |   3 -
>  boot/at91bootstrap/at91bootstrap.mk           |  55 ---
>  8 files changed, 7 insertions(+), 755 deletions(-)
>  delete mode 100644 boot/at91bootstrap/0001-eabi-fix.patch
>  delete mode 100644 boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch
>  delete mode 100644 boot/at91bootstrap/0003-u-boot-relocation-fix.patch
>  delete mode 100644 boot/at91bootstrap/Config.in
>  delete mode 100644 boot/at91bootstrap/at91bootstrap.hash
>  delete mode 100644 boot/at91bootstrap/at91bootstrap.mk
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index b5a87d4e88..7e5bc28bae 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -146,6 +146,13 @@ endif
>  
>  comment "Legacy options removed in 2024.05"
>  
> +config BR2_TARGET_AT91BOOTSTRAP
> +	bool "at91bootstrap removed"
> +	select BR2_LEGACY
> +	help
> +	  Upstream for at91bootstrap 1.x is no longer available and
> +	  has been replaced by at91bootstrap3.
> +
>  config BR2_PACKAGE_ON2_8170_MODULES
>  	bool "on2-8170-modules removed"
>  	select BR2_LEGACY
> diff --git a/boot/Config.in b/boot/Config.in
> index 87e1b7c00e..3e00d28e56 100644
> --- a/boot/Config.in
> +++ b/boot/Config.in
> @@ -1,7 +1,6 @@
>  menu "Bootloaders"
>  
>  source "boot/afboot-stm32/Config.in"
> -source "boot/at91bootstrap/Config.in"
>  source "boot/at91bootstrap3/Config.in"
>  source "boot/at91dataflashboot/Config.in"
>  source "boot/arm-trusted-firmware/Config.in"
> diff --git a/boot/at91bootstrap/0001-eabi-fix.patch b/boot/at91bootstrap/0001-eabi-fix.patch
> deleted file mode 100644
> index eab3c20928..0000000000
> --- a/boot/at91bootstrap/0001-eabi-fix.patch
> +++ /dev/null
> @@ -1,334 +0,0 @@
> -When using an EABI toolchain, the default compilation generates
> -references to __aeabi_unwind_cpp_pr0(). This symbol is defined in
> -libgcc, but we don't want to use it for a bootloader.
> -
> -Therefore, this patch passes some additional CFLAGS to disable the
> -generation of such references by avoiding unwind tables, exceptions,
> -etc.
> -
> -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ----
> - board/at91cap9adk/dataflash/Makefile      |    2 +-
> - board/at91cap9adk/norflash/Makefile       |    2 +-
> - board/at91cap9stk/nandflash/Makefile      |    2 +-
> - board/at91sam9260ek/dataflash/Makefile    |    2 +-
> - board/at91sam9260ek/nandflash/Makefile    |    2 +-
> - board/at91sam9261ek/dataflash/Makefile    |    2 +-
> - board/at91sam9261ek/nandflash/Makefile    |    2 +-
> - board/at91sam9263ek/dataflash/Makefile    |    2 +-
> - board/at91sam9263ek/nandflash/Makefile    |    2 +-
> - board/at91sam9g10ek/dataflash/Makefile    |    2 +-
> - board/at91sam9g10ek/nandflash/Makefile    |    2 +-
> - board/at91sam9g20ek/dataflash/Makefile    |    2 +-
> - board/at91sam9g20ek/nandflash/Makefile    |    2 +-
> - board/at91sam9g45ekes/nandflash/Makefile  |    2 +-
> - board/at91sam9m10ekes/dataflash/Makefile  |    2 +-
> - board/at91sam9m10ekes/nandflash/Makefile  |    2 +-
> - board/at91sam9m10g45ek/dataflash/Makefile |    2 +-
> - board/at91sam9m10g45ek/nandflash/Makefile |    2 +-
> - board/at91sam9rlek/dataflash/Makefile     |    2 +-
> - board/at91sam9rlek/nandflash/Makefile     |    2 +-
> - board/at91sam9xeek/dataflash/Makefile     |    2 +-
> - board/at91sam9xeek/nandflash/Makefile     |    2 +-
> - lib/Makefile                              |    2 +-
> - 23 files changed, 23 insertions(+), 23 deletions(-)
> -
> -Index: Bootstrap-v1.16/board/at91cap9adk/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91cap9adk/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91cap9adk/dataflash/Makefile
> -@@ -34,7 +34,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91cap9adk/norflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91cap9adk/norflash/Makefile
> -+++ Bootstrap-v1.16/board/at91cap9adk/norflash/Makefile
> -@@ -34,7 +34,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91cap9stk/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91cap9stk/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91cap9stk/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - 
> -Index: Bootstrap-v1.16/board/at91sam9260ek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9260ek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9260ek/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9260ek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9260ek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9260ek/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9261ek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9261ek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9261ek/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9261ek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9261ek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9261ek/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9263ek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9263ek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9263ek/dataflash/Makefile
> -@@ -34,7 +34,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9263ek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9263ek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9263ek/nandflash/Makefile
> -@@ -33,7 +33,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -O0 -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -O0 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9g10ek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9g10ek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9g10ek/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9g10ek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9g10ek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9g10ek/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9g20ek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9g20ek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9g20ek/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9g20ek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9g20ek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9g20ek/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9g45ekes/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9g45ekes/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9g45ekes/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9m10ekes/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9m10ekes/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9m10ekes/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9m10ekes/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9m10ekes/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9m10ekes/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9m10g45ek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9m10g45ek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9m10g45ek/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9m10g45ek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9m10g45ek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9m10g45ek/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9rlek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9rlek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9rlek/dataflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9rlek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9rlek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9rlek/nandflash/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9xeek/dataflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9xeek/dataflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9xeek/dataflash/Makefile
> -@@ -38,7 +38,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/board/at91sam9xeek/nandflash/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/board/at91sam9xeek/nandflash/Makefile
> -+++ Bootstrap-v1.16/board/at91sam9xeek/nandflash/Makefile
> -@@ -38,7 +38,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> -Index: Bootstrap-v1.16/lib/Makefile
> -===================================================================
> ---- Bootstrap-v1.16.orig/lib/Makefile
> -+++ Bootstrap-v1.16/lib/Makefile
> -@@ -37,7 +37,7 @@
> - SIZE=$(CROSS_COMPILE)size
> - OBJCOPY=$(CROSS_COMPILE)objcopy
> - OBJDUMP=$(CROSS_COMPILE)objdump
> --CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
> -+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> - ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
> - 
> - # Linker flags.
> diff --git a/boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch b/boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch
> deleted file mode 100644
> index e4ed04e865..0000000000
> --- a/boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch
> +++ /dev/null
> @@ -1,29 +0,0 @@
> -From b783d1f9bf985c0981e755bd2c13e091e9d6837f Mon Sep 17 00:00:00 2001
> -From: Gregory Hermant <gregory.hermant@calao-systems.com>
> -Date: Tue, 6 Nov 2012 09:38:50 +0100
> -Subject: [PATCH] at91bootstrap: fix overlap linker issue
> -
> -The linker script of the at91bootstrap package has to be modified when
> -built from gcc-4.6.x version. Indeed a section named text.startup is
> -created and has to be added into the text section.
> -
> -Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
> ----
> - elf32-littlearm.lds |    1 +
> - 1 file changed, 1 insertion(+)
> -
> -diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds
> -index a33952f..4f3ba25 100644
> ---- a/elf32-littlearm.lds
> -+++ b/elf32-littlearm.lds
> -@@ -7,6 +7,7 @@ SECTIONS
> - 	.text : { 
> - 		_stext = .;
> - 		*(.text)
> -+		*(.text*)
> - 		*(.rodata)                 /* read-only data (constants) */
> - 		*(.rodata*)
> - 		. = ALIGN(4);
> --- 
> -1.7.9.5
> -
> diff --git a/boot/at91bootstrap/0003-u-boot-relocation-fix.patch b/boot/at91bootstrap/0003-u-boot-relocation-fix.patch
> deleted file mode 100644
> index 0c9b9114cb..0000000000
> --- a/boot/at91bootstrap/0003-u-boot-relocation-fix.patch
> +++ /dev/null
> @@ -1,284 +0,0 @@
> -From d4e4a1aad559e35d84b445d1379be94ad036984e Mon Sep 17 00:00:00 2001
> -From: Alexandre Belloni <alexandre.belloni@piout.net>
> -Date: Thu, 25 Oct 2012 22:57:14 +0200
> -Subject: [PATCH] u-boot relocation fix
> -
> -Every AT91SAM plaforms were broken between 2010.12 and 2011.03 because
> -of the relocation changes.
> -
> -We have to get JUMP_ADDR consistant with what is used by u-boot
> -(CONFIG_SYS_TEXT_BASE).
> -
> -I didn't know what to do with at91sam9m10g45ek as it doesn't seems to be
> -converted yet. But anyway, that means that it is either not working or
> -doesn't care so changing it here shouldn't harm.
> -
> -We also have to increase the IMG_SIZE as u-boot as grown larger than the
> -default value. As requested on the u-boot ML, we assume that it could
> -be up to 495kB big.
> -
> -It means that now, you have to flash your kernel at 0x00084000 instead
> -of 0x00042000. And so you also have to load it from that adress from
> -u-boot.
> -
> -Then, remember that you could decrease IMG_SIZE to boot faster.
> -
> -Signed-off-by: Alexandre Belloni <alexandre.belloni@piout.net>
> ----
> - board/at91sam9260ek/dataflash/at91sam9260ek.h      |    4 ++--
> - board/at91sam9260ek/nandflash/at91sam9260ek.h      |    2 +-
> - board/at91sam9261ek/dataflash/at91sam9261ek.h      |    4 ++--
> - board/at91sam9261ek/nandflash/at91sam9261ek.h      |    2 +-
> - board/at91sam9263ek/dataflash/at91sam9263ek.h      |    4 ++--
> - board/at91sam9263ek/nandflash/at91sam9263ek.h      |    2 +-
> - board/at91sam9g10ek/dataflash/at91sam9g10ek.h      |    4 ++--
> - board/at91sam9g10ek/nandflash/at91sam9g10ek.h      |    2 +-
> - board/at91sam9g20ek/dataflash/at91sam9g20ek.h      |    4 ++--
> - board/at91sam9g20ek/nandflash/at91sam9g20ek.h      |    2 +-
> - board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h  |    2 +-
> - .../at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h  |    2 +-
> - board/at91sam9rlek/dataflash/at91sam9rlek.h        |    4 ++--
> - board/at91sam9rlek/nandflash/at91sam9rlek.h        |    2 +-
> - board/at91sam9xeek/dataflash/at91sam9xeek.h        |    4 ++--
> - board/at91sam9xeek/nandflash/at91sam9xeek.h        |    2 +-
> - 16 files changed, 23 insertions(+), 23 deletions(-)
> -
> -diff --git a/board/at91sam9260ek/dataflash/at91sam9260ek.h b/board/at91sam9260ek/dataflash/at91sam9260ek.h
> -index 1834246..91081a1 100644
> ---- a/board/at91sam9260ek/dataflash/at91sam9260ek.h
> -+++ b/board/at91sam9260ek/dataflash/at91sam9260ek.h
> -@@ -74,10 +74,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
> - 
> - #define MACH_TYPE       0x44B       /* AT91SAM9260-EK */
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9260ek/nandflash/at91sam9260ek.h b/board/at91sam9260ek/nandflash/at91sam9260ek.h
> -index 2cac601..f8fdff2 100644
> ---- a/board/at91sam9260ek/nandflash/at91sam9260ek.h
> -+++ b/board/at91sam9260ek/nandflash/at91sam9260ek.h
> -@@ -92,7 +92,7 @@
> - #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
> - 
> - #define MACH_TYPE       	0x44B		/* AT91SAM9260-EK */
> --#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9261ek/dataflash/at91sam9261ek.h b/board/at91sam9261ek/dataflash/at91sam9261ek.h
> -index 8ce30e9..276ba3d 100644
> ---- a/board/at91sam9261ek/dataflash/at91sam9261ek.h
> -+++ b/board/at91sam9261ek/dataflash/at91sam9261ek.h
> -@@ -97,10 +97,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
> - 
> - #define MACH_TYPE       0x350       /* AT91SAM9261-EK */
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9261ek/nandflash/at91sam9261ek.h b/board/at91sam9261ek/nandflash/at91sam9261ek.h
> -index badc3ac..e628c97 100644
> ---- a/board/at91sam9261ek/nandflash/at91sam9261ek.h
> -+++ b/board/at91sam9261ek/nandflash/at91sam9261ek.h
> -@@ -114,7 +114,7 @@
> - #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
> - 
> - #define MACH_TYPE       	0x350		/* AT91SAM9261-EK */
> --#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9263ek/dataflash/at91sam9263ek.h b/board/at91sam9263ek/dataflash/at91sam9263ek.h
> -index 5c9da4b..870f9e2 100644
> ---- a/board/at91sam9263ek/dataflash/at91sam9263ek.h
> -+++ b/board/at91sam9263ek/dataflash/at91sam9263ek.h
> -@@ -96,10 +96,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 			0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE			0x33900			/* Image Size in DataFlash    */
> -+#define	IMG_SIZE			0x7BC00			/* Image Size in DataFlash    */
> - 
> - #define MACH_TYPE       		0x4B2       		/* AT91SAM9263-EK */
> --#define JUMP_ADDR			0x23F00000		/* Final Jump Address 	      */
> -+#define JUMP_ADDR			0x21F00000		/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9263ek/nandflash/at91sam9263ek.h b/board/at91sam9263ek/nandflash/at91sam9263ek.h
> -index 505afc7..8ab4f46 100644
> ---- a/board/at91sam9263ek/nandflash/at91sam9263ek.h
> -+++ b/board/at91sam9263ek/nandflash/at91sam9263ek.h
> -@@ -108,7 +108,7 @@
> - #define	IMG_SIZE	0x40000		/* Image Size in NandFlash    */
> - 
> - #define MACH_TYPE       1202       	/* AT91SAM9263-EK */
> --#define JUMP_ADDR	0x23F00000	/* Final Jump Address 	      */
> -+#define JUMP_ADDR	0x21F00000	/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
> -index b2faf44..f4f556b 100644
> ---- a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
> -+++ b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
> -@@ -98,10 +98,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
> - 
> - #define MACH_TYPE       0x350       /* AT91SAM9261-EK */
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
> -index 66c40a3..6c3ecda 100644
> ---- a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
> -+++ b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
> -@@ -115,7 +115,7 @@
> - #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
> - 
> - #define MACH_TYPE       	0x350		/* AT91SAM9G10-EK */
> --#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
> -index eea0439..7fc70d6 100644
> ---- a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
> -+++ b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
> -@@ -75,10 +75,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS1 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash */
> - 
> - #define MACH_TYPE		0x658			/* AT91SAM9G20-EK */
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
> -index 31bd499..e797e4d 100644
> ---- a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
> -+++ b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
> -@@ -93,7 +93,7 @@
> - #define	IMG_SIZE		0x40000			/* Image Size in NandFlash */
> - 
> - #define MACH_TYPE		0x658			/* AT91SAM9G20-EK */
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
> -index a60fd41..5587a00 100644
> ---- a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
> -+++ b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
> -@@ -89,7 +89,7 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash */
> - 
> - #define MACH_TYPE		0x9CD			/* AT91SAM9M10-EKES */
> - #define JUMP_ADDR		0x73F00000		/* Final Jump Address */
> -diff --git a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
> -index 5c726b5..9090097 100644
> ---- a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
> -+++ b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
> -@@ -85,7 +85,7 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash */
> - 
> - #define MACH_TYPE		0x726			/* AT91SAM9M10G45-EK */
> - #define JUMP_ADDR		0x73F00000		/* Final Jump Address */
> -diff --git a/board/at91sam9rlek/dataflash/at91sam9rlek.h b/board/at91sam9rlek/dataflash/at91sam9rlek.h
> -index 05c42dc..150f17e 100644
> ---- a/board/at91sam9rlek/dataflash/at91sam9rlek.h
> -+++ b/board/at91sam9rlek/dataflash/at91sam9rlek.h
> -@@ -89,10 +89,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
> - 
> - #define IMG_ADDRESS 	0x8400		/* Image Address in DataFlash */
> --#define	IMG_SIZE	0x33900		/* Image Size in DataFlash    */
> -+#define	IMG_SIZE	0x7BC00		/* Image Size in DataFlash    */
> - 
> - #define MACH_TYPE       1326       	/* AT91SAM9RL-EK */
> --#define JUMP_ADDR	0x23F00000	/* Final Jump Address 	      */
> -+#define JUMP_ADDR	0x21F00000	/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9rlek/nandflash/at91sam9rlek.h b/board/at91sam9rlek/nandflash/at91sam9rlek.h
> -index 656b4ba..594db8f 100644
> ---- a/board/at91sam9rlek/nandflash/at91sam9rlek.h
> -+++ b/board/at91sam9rlek/nandflash/at91sam9rlek.h
> -@@ -112,7 +112,7 @@
> - #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
> - 
> - #define MACH_TYPE       1326       		/* AT91SAM9RL-EK */
> --#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9xeek/dataflash/at91sam9xeek.h b/board/at91sam9xeek/dataflash/at91sam9xeek.h
> -index 27d1822..08e515d 100644
> ---- a/board/at91sam9xeek/dataflash/at91sam9xeek.h
> -+++ b/board/at91sam9xeek/dataflash/at91sam9xeek.h
> -@@ -74,10 +74,10 @@
> - #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS1 */
> - 
> - #define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
> --#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
> -+#define	IMG_SIZE		0x7BC00			/* Image Size in DataFlash    */
> - 
> - #define MACH_TYPE		0x44B			/* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> -diff --git a/board/at91sam9xeek/nandflash/at91sam9xeek.h b/board/at91sam9xeek/nandflash/at91sam9xeek.h
> -index 5dbc63e..9fac7cb 100644
> ---- a/board/at91sam9xeek/nandflash/at91sam9xeek.h
> -+++ b/board/at91sam9xeek/nandflash/at91sam9xeek.h
> -@@ -94,7 +94,7 @@
> - #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
> - 
> - #define MACH_TYPE		0x44B			/* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
> --#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
> -+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
> - 
> - /* ******************************************************************* */
> - /* Application Settings                                                */
> --- 
> -1.7.9.5
> -
> diff --git a/boot/at91bootstrap/Config.in b/boot/at91bootstrap/Config.in
> deleted file mode 100644
> index 0f6430fd8d..0000000000
> --- a/boot/at91bootstrap/Config.in
> +++ /dev/null
> @@ -1,49 +0,0 @@
> -config BR2_TARGET_AT91BOOTSTRAP
> -	bool "AT91 Bootstrap"
> -	depends on BR2_arm926t
> -	help
> -	  AT91Bootstrap is a first level bootloader for the Atmel AT91
> -	  devices. It integrates algorithms for:
> -	  - Device initialization such as clock configuration, PIO
> -	    settings...
> -	  - Peripheral drivers such as PIO, PMC or SDRAMC...
> -	  - Physical media algorithm such as DataFlash, NandFlash, NOR
> -	    Flash...
> -
> -if	BR2_TARGET_AT91BOOTSTRAP
> -
> -config BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR
> -	string "custom patch dir"
> -	help
> -	  If your board requires custom patches, add the path to the
> -	  directory containing the patches here. The patches must be
> -	  named at91bootstrap-<version>-<something>.patch.
> -
> -	  Most users may leave this empty
> -
> -config BR2_TARGET_AT91BOOTSTRAP_BOARD
> -	string "Bootstrap board"
> -	default ""
> -	help
> -	  This is used to do a make <board>_config
> -
> -choice
> -	prompt "Boot Memory"
> -	default BR2_TARGET_AT91BOOTSTRAP_DATAFLASH
> -	help
> -	  Select Chip for which AT91 bootstrap should be built
> -
> -config BR2_TARGET_AT91BOOTSTRAP_DATAFLASH
> -	bool "Data Flash"
> -
> -config BR2_TARGET_AT91BOOTSTRAP_NANDFLASH
> -	bool "NAND Flash"
> -
> -endchoice
> -
> -config BR2_TARGET_AT91BOOTSTRAP_MEMORY
> -	string
> -	default	"dataflash"	if	BR2_TARGET_AT91BOOTSTRAP_DATAFLASH
> -	default	"nandflash"	if	BR2_TARGET_AT91BOOTSTRAP_NANDFLASH
> -
> -endif
> diff --git a/boot/at91bootstrap/at91bootstrap.hash b/boot/at91bootstrap/at91bootstrap.hash
> deleted file mode 100644
> index d9f8db8897..0000000000
> --- a/boot/at91bootstrap/at91bootstrap.hash
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -# locally computed
> -sha256  d66192a274247f4baa39fa932eadf903d7add55641d89d30402f967c4f2282a5  AT91Bootstrap1.16.zip
> -sha256  6a3ac5dfcf19e6bac1b1109d30d72818768a3855e2594b84fe2b012b5fe0e77b  include/sdramc.h
> diff --git a/boot/at91bootstrap/at91bootstrap.mk b/boot/at91bootstrap/at91bootstrap.mk
> deleted file mode 100644
> index 385957b5d4..0000000000
> --- a/boot/at91bootstrap/at91bootstrap.mk
> +++ /dev/null
> @@ -1,55 +0,0 @@
> -################################################################################
> -#
> -# at91bootstrap
> -#
> -################################################################################
> -
> -AT91BOOTSTRAP_VERSION = 1.16
> -AT91BOOTSTRAP_SITE = ftp://www.at91.com/pub/at91bootstrap
> -AT91BOOTSTRAP_SOURCE = AT91Bootstrap$(AT91BOOTSTRAP_VERSION).zip
> -AT91BOOTSTRAP_LICENSE = BSD-Source-Code
> -AT91BOOTSTRAP_LICENSE_FILES = include/sdramc.h
> -
> -AT91BOOTSTRAP_BOARD = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_BOARD))
> -AT91BOOTSTRAP_MEMORY = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_MEMORY))
> -AT91BOOTSTRAP_MAKE_SUBDIR = board/$(AT91BOOTSTRAP_BOARD)/$(AT91BOOTSTRAP_MEMORY)
> -AT91BOOTSTRAP_BINARY = $(AT91BOOTSTRAP_MAKE_SUBDIR)/$(AT91BOOTSTRAP_MEMORY)_$(AT91BOOTSTRAP_BOARD).bin
> -
> -AT91BOOTSTRAP_INSTALL_IMAGES = YES
> -AT91BOOTSTRAP_INSTALL_TARGET = NO
> -
> -define AT91BOOTSTRAP_EXTRACT_CMDS
> -	$(UNZIP) -d $(BUILD_DIR) $(AT91BOOTSTRAP_DL_DIR)/$(AT91BOOTSTRAP_SOURCE)
> -	mv $(BUILD_DIR)/Bootstrap-v$(AT91BOOTSTRAP_VERSION)/* $(@D)
> -	rmdir $(BUILD_DIR)/Bootstrap-v$(AT91BOOTSTRAP_VERSION)
> -endef
> -
> -ifneq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR)),)
> -define AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES
> -	$(APPLY_PATCHES) $(@D) $(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR) \*.patch
> -endef
> -
> -AT91BOOTSTRAP_POST_PATCH_HOOKS += AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES
> -endif
> -
> -# The at91bootstrap Makefile doesn't support customizing
> -# CFLAGS/LDFLAGS, so we cheat and pass our custom flags through CC and
> -# LD.
> -define AT91BOOTSTRAP_BUILD_CMDS
> -	$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) \
> -		CC="$(TARGET_CC) -fno-stack-protector" \
> -		LD="$(TARGET_CC) -fno-PIE" \
> -		-C $(@D)/$(AT91BOOTSTRAP_MAKE_SUBDIR)
> -endef
> -
> -define AT91BOOTSTRAP_INSTALL_IMAGES_CMDS
> -	cp $(@D)/$(AT91BOOTSTRAP_BINARY) $(BINARIES_DIR)
> -endef
> -
> -$(eval $(generic-package))
> -
> -ifeq ($(BR2_TARGET_AT91BOOTSTRAP)$(BR_BUILDING),yy)
> -ifeq ($(AT91BOOTSTRAP_BOARD),)
> -$(error No AT91Bootstrap board name set. Check your BR2_TARGET_AT91BOOTSTRAP_BOARD setting)
> -endif
> -endif
> -- 
> 2.39.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 2/2] boot/at91dataflashboot: remove package
  2024-06-03 11:55 ` [Buildroot] [PATCH 2/2] boot/at91dataflashboot: " Peter Korsgaard
@ 2024-06-03 20:57   ` Yann E. MORIN
  0 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2024-06-03 20:57 UTC (permalink / raw)
  To: Peter Korsgaard; +Cc: buildroot

Peter, All,

On 2024-06-03 13:55 +0200, Peter Korsgaard spake thusly:
> At91dataflashboot is an ancient (2006) fork of at91bootstrap1 specifically
> for the Atmel/Microchip AT45 series (dataflash) of serial flashes.
> 
> The package hasn't seen any meaningful updates since, is not used by any
> defconfigs and at91bootstrap3 nowadays has AT45 support - So remove the
> package.
> 
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
>  Config.in.legacy                              |  6 +++
>  boot/Config.in                                |  1 -
>  .../0001-do-not-install.patch                 | 22 ----------
>  boot/at91dataflashboot/0002-eabi-fixes.patch  | 43 -------------------

    $ ./utils/docker-run make check-package
    .checkpackageignore:99: ignored file boot/at91dataflashboot/0001-do-not-install.patch is missing
    .checkpackageignore:100: ignored file boot/at91dataflashboot/0002-eabi-fixes.patch is missing

Applied to master with that fixed, thanks.

Regards,
Yann E. MORIN.

>  boot/at91dataflashboot/Config.in              |  3 --
>  boot/at91dataflashboot/at91dataflashboot.hash |  2 -
>  boot/at91dataflashboot/at91dataflashboot.mk   | 28 ------------
>  7 files changed, 6 insertions(+), 99 deletions(-)
>  delete mode 100644 boot/at91dataflashboot/0001-do-not-install.patch
>  delete mode 100644 boot/at91dataflashboot/0002-eabi-fixes.patch
>  delete mode 100644 boot/at91dataflashboot/Config.in
>  delete mode 100644 boot/at91dataflashboot/at91dataflashboot.hash
>  delete mode 100644 boot/at91dataflashboot/at91dataflashboot.mk
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 7e5bc28bae..f0bff5191f 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -153,6 +153,12 @@ config BR2_TARGET_AT91BOOTSTRAP
>  	  Upstream for at91bootstrap 1.x is no longer available and
>  	  has been replaced by at91bootstrap3.
>  
> +config BR2_TARGET_AT91DATAFLASHBOOT
> +	bool "at91dataflashboot removed"
> +	select BR2_LEGACY
> +	help
> +	  at91dataflashboot has been replaced by at91bootstrap3.
> +
>  config BR2_PACKAGE_ON2_8170_MODULES
>  	bool "on2-8170-modules removed"
>  	select BR2_LEGACY
> diff --git a/boot/Config.in b/boot/Config.in
> index 3e00d28e56..14e0ca65fa 100644
> --- a/boot/Config.in
> +++ b/boot/Config.in
> @@ -2,7 +2,6 @@ menu "Bootloaders"
>  
>  source "boot/afboot-stm32/Config.in"
>  source "boot/at91bootstrap3/Config.in"
> -source "boot/at91dataflashboot/Config.in"
>  source "boot/arm-trusted-firmware/Config.in"
>  source "boot/barebox/Config.in"
>  source "boot/beaglev-ddrinit/Config.in"
> diff --git a/boot/at91dataflashboot/0001-do-not-install.patch b/boot/at91dataflashboot/0001-do-not-install.patch
> deleted file mode 100644
> index 41d97ad20e..0000000000
> --- a/boot/at91dataflashboot/0001-do-not-install.patch
> +++ /dev/null
> @@ -1,22 +0,0 @@
> -Disable the automatic installation of at91dataflashboot since it tries
> -to install things to /tftpboot, which is not possible when not
> -building as root.
> -
> -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ----
> - Makefile |    2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -Index: at91dataflashboot-1.05/Makefile
> -===================================================================
> ---- at91dataflashboot-1.05.orig/Makefile
> -+++ at91dataflashboot-1.05/Makefile
> -@@ -40,7 +40,7 @@
> - 
> - I=config.h com.h dataflash.h embedded_services.h main.h stdio.h include/AT91RM9200.h include/lib_AT91RM9200.h 
> - 
> --all: 	clean $(BINNAME) $(LSSNAME) install
> -+all: 	clean $(BINNAME) $(LSSNAME)
> - 	$(SIZE) $(OUTNAME)
> - 
> - # C objects here
> diff --git a/boot/at91dataflashboot/0002-eabi-fixes.patch b/boot/at91dataflashboot/0002-eabi-fixes.patch
> deleted file mode 100644
> index e38905f7cb..0000000000
> --- a/boot/at91dataflashboot/0002-eabi-fixes.patch
> +++ /dev/null
> @@ -1,43 +0,0 @@
> -Get at91dataflashboot to build with EABI toolchains, by providing the
> -__aeabi_uidiv and __aeabi_uidivmod symbols. The code is based on
> -U-Boot's code.
> -
> -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ----
> - _udivsi3.S |   14 ++++++++++++++
> - 1 file changed, 14 insertions(+)
> -
> -Index: DataflashBoot-1.05/_udivsi3.S
> -===================================================================
> ---- DataflashBoot-1.05.orig/_udivsi3.S
> -+++ DataflashBoot-1.05/_udivsi3.S
> -@@ -12,8 +12,11 @@
> - 	.text
> - 	.globl	 __udivsi3
> - 	.type  __udivsi3       ,function
> -+        .globl  __aeabi_uidiv
> -+        .type   __aeabi_uidiv ,function
> - 	.align	0
> -  __udivsi3      :
> -+ __aeabi_uidiv:
> - 	cmp	divisor, #0
> - 	beq	Ldiv0
> - 	mov	curbit, #1
> -@@ -68,6 +71,17 @@
> - 	mov	r0, #0			@ about as wrong as it could be
> - 	ldmia	sp!, {pc}
> - 	.size  __udivsi3       , . -  __udivsi3
> -+
> -+.globl __aeabi_uidivmod
> -+__aeabi_uidivmod:
> -+
> -+        stmfd   sp!, {r0, r1, ip, lr}
> -+        bl      __aeabi_uidiv
> -+        ldmfd   sp!, {r1, r2, ip, lr}
> -+        mul     r3, r0, r2
> -+        sub     r1, r1, r3
> -+        mov     pc, lr
> -+
> - /* # 235 "libgcc1.S" */
> - /* # 320 "libgcc1.S" */
> - /* # 421 "libgcc1.S" */
> diff --git a/boot/at91dataflashboot/Config.in b/boot/at91dataflashboot/Config.in
> deleted file mode 100644
> index 8b37d84409..0000000000
> --- a/boot/at91dataflashboot/Config.in
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -config BR2_TARGET_AT91DATAFLASHBOOT
> -	bool "AT91 DataFlashBoot"
> -	depends on BR2_arm && BR2_arm926t
> diff --git a/boot/at91dataflashboot/at91dataflashboot.hash b/boot/at91dataflashboot/at91dataflashboot.hash
> deleted file mode 100644
> index 57df4e5389..0000000000
> --- a/boot/at91dataflashboot/at91dataflashboot.hash
> +++ /dev/null
> @@ -1,2 +0,0 @@
> -# locally computed
> -sha256  2cfeb6a9236e1a743c8010f05e504dbc92169ef42d9a6cf7948954a577bfc386  DataflashBoot-1.05.tar.bz2
> diff --git a/boot/at91dataflashboot/at91dataflashboot.mk b/boot/at91dataflashboot/at91dataflashboot.mk
> deleted file mode 100644
> index cb329a90df..0000000000
> --- a/boot/at91dataflashboot/at91dataflashboot.mk
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -################################################################################
> -#
> -# at91dataflashboot
> -#
> -################################################################################
> -
> -AT91DATAFLASHBOOT_VERSION = 1.05
> -AT91DATAFLASHBOOT_SOURCE = DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).tar.bz2
> -AT91DATAFLASHBOOT_SITE = ftp://www.at91.com/pub/buildroot
> -
> -AT91DATAFLASHBOOT_INSTALL_TARGET = NO
> -AT91DATAFLASHBOOT_INSTALL_IMAGES = YES
> -
> -AT91DATAFLASHBOOT_CFLAGS = $(TARGET_CFLAGS) -fno-stack-protector
> -ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
> -AT91DATAFLASHBOOT_CFLAGS += -marm
> -endif
> -
> -define AT91DATAFLASHBOOT_BUILD_CMDS
> -	make -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) \
> -		CFLAGS="$(AT91DATAFLASHBOOT_CFLAGS)"
> -endef
> -
> -define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS
> -	cp $(@D)/DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).bin $(BINARIES_DIR)
> -endef
> -
> -$(eval $(generic-package))
> -- 
> 2.39.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/2] boot/at91bootstrap: remove package
  2024-06-03 20:56 ` [Buildroot] [PATCH 1/2] boot/at91bootstrap: " Yann E. MORIN
@ 2024-06-03 21:27   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2024-06-03 21:27 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Peter, All,
 > On 2024-06-03 13:55 +0200, Peter Korsgaard spake thusly:
 >> The upstream is no longer available, no defconfigs use it and the package
 >> has been replaced 12 years ago with at91bootstrap3 with commit ca0d69c61cc
 >> (at91bootstrap3: new package), so remove it.
 >> 
 >> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
 >> ---
 >> Config.in.legacy                              |   7 +
 >> boot/Config.in                                |   1 -
 >> boot/at91bootstrap/0001-eabi-fix.patch        | 334 ------------------
 >> .../0002-gcc-4.6.x-ldscript-fix.patch         |  29 --
 >> .../0003-u-boot-relocation-fix.patch          | 284 ---------------

 >     $ ./utils/docker-run make check-package
 >     .checkpackageignore:99: ignored file boot/at91bootstrap/0001-eabi-fix.patch is missing
 >     .checkpackageignore:100: ignored file boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch is missing
 >     .checkpackageignore:101: ignored file boot/at91bootstrap/0003-u-boot-relocation-fix.patch is missing

 > Applied to master with that fixed, thanks.

Ups, thanks!

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-03 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03 11:55 [Buildroot] [PATCH 1/2] boot/at91bootstrap: remove package Peter Korsgaard
2024-06-03 11:55 ` [Buildroot] [PATCH 2/2] boot/at91dataflashboot: " Peter Korsgaard
2024-06-03 20:57   ` Yann E. MORIN
2024-06-03 20:56 ` [Buildroot] [PATCH 1/2] boot/at91bootstrap: " Yann E. MORIN
2024-06-03 21:27   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox