Move all to deprecated folder.
This commit is contained in:
17
deprecated/firmware/buildroot/boot/Config.in
Normal file
17
deprecated/firmware/buildroot/boot/Config.in
Normal file
@@ -0,0 +1,17 @@
|
||||
menu "Bootloaders"
|
||||
|
||||
source "boot/at91bootstrap/Config.in"
|
||||
source "boot/at91bootstrap3/Config.in"
|
||||
source "boot/at91dataflashboot/Config.in"
|
||||
source "boot/barebox/Config.in"
|
||||
source "boot/boot-wrapper-aarch64/Config.in"
|
||||
source "boot/grub/Config.in"
|
||||
source "boot/grub2/Config.in"
|
||||
source "boot/gummiboot/Config.in"
|
||||
source "boot/lpc32xxcdl/Config.in"
|
||||
source "boot/mxs-bootlets/Config.in"
|
||||
source "boot/syslinux/Config.in"
|
||||
source "boot/uboot/Config.in"
|
||||
source "boot/xloader/Config.in"
|
||||
|
||||
endmenu
|
||||
47
deprecated/firmware/buildroot/boot/at91bootstrap/Config.in
Normal file
47
deprecated/firmware/buildroot/boot/at91bootstrap/Config.in
Normal file
@@ -0,0 +1,47 @@
|
||||
config BR2_TARGET_AT91BOOTSTRAP
|
||||
depends on BR2_arm926t
|
||||
bool "AT91 Bootstrap"
|
||||
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
|
||||
@@ -0,0 +1,334 @@
|
||||
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.
|
||||
@@ -0,0 +1,29 @@
|
||||
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
|
||||
|
||||
@@ -0,0 +1,284 @@
|
||||
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
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
#
|
||||
# at91bootstrap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AT91BOOTSTRAP_VERSION = 1.16
|
||||
AT91BOOTSTRAP_SITE = ftp://www.at91.com/pub/at91bootstrap
|
||||
AT91BOOTSTRAP_SOURCE = AT91Bootstrap$(AT91BOOTSTRAP_VERSION).zip
|
||||
|
||||
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) $(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
|
||||
|
||||
define AT91BOOTSTRAP_BUILD_CMDS
|
||||
$(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -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
|
||||
87
deprecated/firmware/buildroot/boot/at91bootstrap3/Config.in
Normal file
87
deprecated/firmware/buildroot/boot/at91bootstrap3/Config.in
Normal file
@@ -0,0 +1,87 @@
|
||||
config BR2_TARGET_AT91BOOTSTRAP3
|
||||
depends on BR2_arm926t || BR2_cortex_a5
|
||||
bool "AT91 Bootstrap 3"
|
||||
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_AT91BOOTSTRAP3
|
||||
|
||||
choice
|
||||
|
||||
prompt "AT91 Bootstrap 3 version"
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
|
||||
bool "3.8"
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
help
|
||||
This option allows Buildroot to get the AT91 Bootstrap 3 source
|
||||
code from a Git repository.
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL
|
||||
string "URL of custom repository"
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION
|
||||
string "Custom repository version"
|
||||
help
|
||||
Revision to use in the typical format used by Git
|
||||
E.G. a sha id, a tag, branch, ..
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_VERSION
|
||||
string
|
||||
default "v3.8" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
|
||||
default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \
|
||||
if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_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 at91bootstrap3-<something>.patch.
|
||||
|
||||
Most users may leave this empty
|
||||
|
||||
#
|
||||
# Configuration selection
|
||||
#
|
||||
|
||||
choice
|
||||
prompt "AT91 Bootstrap 3 configuration"
|
||||
default BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG
|
||||
bool "Using a defconfig"
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG
|
||||
bool "Using a custom config file"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG
|
||||
string "Defconfig name"
|
||||
depends on BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG
|
||||
help
|
||||
Name of the at91bootstrap3 defconfig file to use, without the
|
||||
trailing _defconfig. The defconfig is located at
|
||||
board/<processor>/<board>_defconfig in the at91bootstrap3
|
||||
tree.
|
||||
|
||||
config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE
|
||||
string "Configuration file path"
|
||||
depends on BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG
|
||||
help
|
||||
Path to the at91bootstrap3 configuration file
|
||||
|
||||
endif # BR2_TARGET_AT91BOOTSTRAP3
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 ae7bb3f8e631f5216f05fd4650b37f2e76d88d0b893bd680f4f398f33b8f3470 at91bootstrap3-v3.8.tar.gz
|
||||
@@ -0,0 +1,82 @@
|
||||
################################################################################
|
||||
#
|
||||
# at91bootstrap3
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION))
|
||||
|
||||
ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT),y)
|
||||
AT91BOOTSTRAP3_SITE = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL))
|
||||
AT91BOOTSTRAP3_SITE_METHOD = git
|
||||
else
|
||||
AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION))
|
||||
endif
|
||||
|
||||
AT91BOOTSTRAP3_LICENSE = Atmel License
|
||||
AT91BOOTSTRAP3_LICENSE_FILES = main.c
|
||||
|
||||
AT91BOOTSTRAP3_INSTALL_IMAGES = YES
|
||||
AT91BOOTSTRAP3_INSTALL_TARGET = NO
|
||||
|
||||
AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
|
||||
$(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
|
||||
|
||||
AT91BOOTSTRAP3_MAKE_OPTS = CROSS_COMPILE=$(TARGET_CROSS) DESTDIR=$(BINARIES_DIR)
|
||||
|
||||
ifneq ($(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR),)
|
||||
define AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
|
||||
$(APPLY_PATCHES) $(@D) $(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR) \*.patch
|
||||
endef
|
||||
|
||||
AT91BOOTSTRAP3_POST_PATCH_HOOKS += AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
|
||||
endif
|
||||
|
||||
define AT91BOOTSTRAP3_BUILD_CMDS
|
||||
$(MAKE) $(AT91BOOTSTRAP3_MAKE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
|
||||
cp $(@D)/binaries/*.bin $(BINARIES_DIR)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
|
||||
AT91BOOTSTRAP3_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG))_defconfig
|
||||
else ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG),y)
|
||||
AT91BOOTSTRAP3_KCONFIG_FILE = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE))
|
||||
endif
|
||||
|
||||
AT91BOOTSTRAP3_KCONFIG_EDITORS = menuconfig xconfig gconfig
|
||||
AT91BOOTSTRAP3_KCONFIG_OPTS = $(AT91BOOTSTRAP3_MAKE_OPTS)
|
||||
|
||||
# Checks to give errors that the user can understand
|
||||
# Must be before we call to kconfig-package
|
||||
ifeq ($(BR_BUILDING),y)
|
||||
|
||||
ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
|
||||
# We must use the user-supplied kconfig value, because
|
||||
# AT91BOOTSTRAP3_KCONFIG_DEFCONFIG will at least contain
|
||||
# the trailing _defconfig
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG)),)
|
||||
$(error No at91bootstrap3 defconfig name specified, check your BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG setting)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG),y)
|
||||
ifeq ($(AT91BOOTSTRAP3_KCONFIG_FILE),)
|
||||
$(error No at91bootstrap3 configuration file specified, check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE setting)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL)),)
|
||||
$(error No custom at91bootstrap3 repository URL specified. Check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL setting)
|
||||
endif
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION)),)
|
||||
$(error No custom at91bootstrap3 repository version specified. Check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION setting)
|
||||
endif
|
||||
endif
|
||||
|
||||
endif # BR_BUILDING
|
||||
|
||||
$(eval $(kconfig-package))
|
||||
@@ -0,0 +1,3 @@
|
||||
config BR2_TARGET_AT91DATAFLASHBOOT
|
||||
depends on BR2_arm926t
|
||||
bool "AT91 DataFlashBoot"
|
||||
@@ -0,0 +1,22 @@
|
||||
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
|
||||
@@ -0,0 +1,43 @@
|
||||
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" */
|
||||
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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
|
||||
|
||||
define AT91DATAFLASHBOOT_BUILD_CMDS
|
||||
make -C $(@D) CROSS_COMPILE=$(TARGET_CROSS)
|
||||
endef
|
||||
|
||||
define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS
|
||||
cp $(@D)/DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).bin $(BINARIES_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
124
deprecated/firmware/buildroot/boot/barebox/Config.in
Normal file
124
deprecated/firmware/buildroot/boot/barebox/Config.in
Normal file
@@ -0,0 +1,124 @@
|
||||
config BR2_TARGET_BAREBOX
|
||||
bool "Barebox"
|
||||
help
|
||||
The Barebox bootloader, formerly known as U-Boot v2.
|
||||
|
||||
http://www.barebox.org
|
||||
|
||||
if BR2_TARGET_BAREBOX
|
||||
choice
|
||||
prompt "version"
|
||||
help
|
||||
Select the specific Barebox version you want to use
|
||||
|
||||
config BR2_TARGET_BAREBOX_LATEST_VERSION
|
||||
bool "2016.01.0"
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_VERSION
|
||||
bool "Custom version"
|
||||
help
|
||||
This option allows to use a specific official versions
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_TARBALL
|
||||
bool "Custom tarball"
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE
|
||||
string "Barebox version"
|
||||
depends on BR2_TARGET_BAREBOX_CUSTOM_VERSION
|
||||
|
||||
if BR2_TARGET_BAREBOX_CUSTOM_TARBALL
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION
|
||||
string "URL of custom Barebox tarball"
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_BAREBOX_VERSION
|
||||
string
|
||||
default "2016.01.0" if BR2_TARGET_BAREBOX_LATEST_VERSION
|
||||
default BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE if BR2_TARGET_BAREBOX_CUSTOM_VERSION
|
||||
default "custom" if BR2_TARGET_BAREBOX_CUSTOM_TARBALL
|
||||
default BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION if BR2_TARGET_BAREBOX_CUSTOM_GIT
|
||||
|
||||
config BR2_TARGET_BAREBOX_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 barebox-<version>-<something>.patch.
|
||||
|
||||
Most users may leave this empty
|
||||
|
||||
if BR2_TARGET_BAREBOX_CUSTOM_GIT
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_GIT_REPO_URL
|
||||
string "URL of custom Git repository"
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION
|
||||
string "Custom Git version"
|
||||
|
||||
endif
|
||||
|
||||
|
||||
choice
|
||||
prompt "Barebox configuration"
|
||||
default BR2_TARGET_BAREBOX_USE_DEFCONFIG
|
||||
|
||||
config BR2_TARGET_BAREBOX_USE_DEFCONFIG
|
||||
bool "Using a defconfig"
|
||||
|
||||
config BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG
|
||||
bool "Using a custom config file"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_BAREBOX_BOARD_DEFCONFIG
|
||||
string "board defconfig"
|
||||
depends on BR2_TARGET_BAREBOX_USE_DEFCONFIG
|
||||
help
|
||||
Name of the board for which Barebox should be built, without
|
||||
the _defconfig suffix.
|
||||
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE
|
||||
string "Configuration file path"
|
||||
depends on BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG
|
||||
help
|
||||
Path to the barebox configuration file
|
||||
|
||||
config BR2_TARGET_BAREBOX_CONFIG_FRAGMENT_FILES
|
||||
string "Additional configuration fragment files"
|
||||
help
|
||||
A space-separated list of configuration fragment files,
|
||||
that will be merged to the main Barebox configuration file.
|
||||
|
||||
config BR2_TARGET_BAREBOX_BAREBOXENV
|
||||
bool "bareboxenv tool in target"
|
||||
help
|
||||
Install bareboxenv tool in target.
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_ENV
|
||||
bool "Generate an environment image"
|
||||
help
|
||||
Generate a custom environment image. This environment will
|
||||
contain the variables and scripts to be used at boot by
|
||||
barebox.
|
||||
|
||||
config BR2_TARGET_BAREBOX_CUSTOM_ENV_PATH
|
||||
string "Environment path"
|
||||
depends on BR2_TARGET_BAREBOX_CUSTOM_ENV
|
||||
help
|
||||
Path to the directory containing the custom barebox
|
||||
environment. Depending on your setup, it will probably be
|
||||
based on either the content of the defaultenv or
|
||||
defaultenv-2 directories in the barebox source code, plus
|
||||
the additions needed. The output will be an image in the
|
||||
barebox devfs format, stored in the images directory, with
|
||||
the same name as the directory name given here.
|
||||
|
||||
endif
|
||||
5
deprecated/firmware/buildroot/boot/barebox/barebox.hash
Normal file
5
deprecated/firmware/buildroot/boot/barebox/barebox.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# http://www.barebox.org/download/barebox-2015.12.0.tar.bz2.md5
|
||||
md5 99f8c1252e3085e4b3a4e365ff36e9bd barebox-2016.01.0.tar.bz2
|
||||
|
||||
# Locally calculated
|
||||
sha256 f0bb34b745b9c8c626186e22b0154f57c15d0eec5de1e3654f740665b2136d91 barebox-2016.01.0.tar.bz2
|
||||
120
deprecated/firmware/buildroot/boot/barebox/barebox.mk
Normal file
120
deprecated/firmware/buildroot/boot/barebox/barebox.mk
Normal file
@@ -0,0 +1,120 @@
|
||||
################################################################################
|
||||
#
|
||||
# barebox
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BAREBOX_VERSION = $(call qstrip,$(BR2_TARGET_BAREBOX_VERSION))
|
||||
|
||||
ifeq ($(BAREBOX_VERSION),custom)
|
||||
# Handle custom Barebox tarballs as specified by the configuration
|
||||
BAREBOX_TARBALL = $(call qstrip,$(BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION))
|
||||
BAREBOX_SITE = $(patsubst %/,%,$(dir $(BAREBOX_TARBALL)))
|
||||
BAREBOX_SOURCE = $(notdir $(BAREBOX_TARBALL))
|
||||
BR_NO_CHECK_HASH_FOR += $(BAREBOX_SOURCE)
|
||||
else ifeq ($(BR2_TARGET_BAREBOX_CUSTOM_GIT),y)
|
||||
BAREBOX_SITE = $(call qstrip,$(BR2_TARGET_BAREBOX_CUSTOM_GIT_REPO_URL))
|
||||
BAREBOX_SITE_METHOD = git
|
||||
else
|
||||
# Handle stable official Barebox versions
|
||||
BAREBOX_SOURCE = barebox-$(BAREBOX_VERSION).tar.bz2
|
||||
BAREBOX_SITE = http://www.barebox.org/download
|
||||
ifeq ($(BR2_TARGET_BAREBOX_CUSTOM_VERSION),y)
|
||||
BR_NO_CHECK_HASH_FOR += $(BAREBOX_SOURCE)
|
||||
endif
|
||||
endif
|
||||
|
||||
BAREBOX_DEPENDENCIES = host-lzop
|
||||
BAREBOX_LICENSE = GPLv2 with exceptions
|
||||
BAREBOX_LICENSE_FILES = COPYING
|
||||
|
||||
ifneq ($(call qstrip,$(BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR)),)
|
||||
define BAREBOX_APPLY_CUSTOM_PATCHES
|
||||
$(APPLY_PATCHES) $(@D) \
|
||||
$(BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR) \*.patch
|
||||
endef
|
||||
|
||||
BAREBOX_POST_PATCH_HOOKS += BAREBOX_APPLY_CUSTOM_PATCHES
|
||||
endif
|
||||
|
||||
BAREBOX_INSTALL_IMAGES = YES
|
||||
ifneq ($(BR2_TARGET_BAREBOX_BAREBOXENV),y)
|
||||
BAREBOX_INSTALL_TARGET = NO
|
||||
endif
|
||||
|
||||
ifeq ($(KERNEL_ARCH),i386)
|
||||
BAREBOX_ARCH = x86
|
||||
else ifeq ($(KERNEL_ARCH),x86_64)
|
||||
BAREBOX_ARCH = x86
|
||||
else ifeq ($(KERNEL_ARCH),powerpc)
|
||||
BAREBOX_ARCH = ppc
|
||||
else
|
||||
BAREBOX_ARCH = $(KERNEL_ARCH)
|
||||
endif
|
||||
|
||||
BAREBOX_MAKE_FLAGS = ARCH=$(BAREBOX_ARCH) CROSS_COMPILE="$(TARGET_CROSS)"
|
||||
BAREBOX_MAKE_ENV = $(TARGET_MAKE_ENV)
|
||||
|
||||
ifeq ($(BR2_TARGET_BAREBOX_USE_DEFCONFIG),y)
|
||||
BAREBOX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_BAREBOX_BOARD_DEFCONFIG))_defconfig
|
||||
else ifeq ($(BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG),y)
|
||||
BAREBOX_KCONFIG_FILE = $(call qstrip,$(BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE))
|
||||
endif
|
||||
|
||||
BAREBOX_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_TARGET_BAREBOX_CONFIG_FRAGMENT_FILES))
|
||||
BAREBOX_KCONFIG_EDITORS = menuconfig xconfig gconfig nconfig
|
||||
BAREBOX_KCONFIG_OPTS = $(BAREBOX_MAKE_FLAGS)
|
||||
|
||||
ifeq ($(BR2_TARGET_BAREBOX_BAREBOXENV),y)
|
||||
define BAREBOX_BUILD_BAREBOXENV_CMDS
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(@D)/bareboxenv \
|
||||
$(@D)/scripts/bareboxenv.c
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_BAREBOX_CUSTOM_ENV),y)
|
||||
BAREBOX_ENV_NAME = $(notdir $(call qstrip,\
|
||||
$(BR2_TARGET_BAREBOX_CUSTOM_ENV_PATH)))
|
||||
define BAREBOX_BUILD_CUSTOM_ENV
|
||||
$(@D)/scripts/bareboxenv -s \
|
||||
$(call qstrip, $(BR2_TARGET_BAREBOX_CUSTOM_ENV_PATH)) \
|
||||
$(@D)/$(BAREBOX_ENV_NAME)
|
||||
endef
|
||||
define BAREBOX_INSTALL_CUSTOM_ENV
|
||||
cp $(@D)/$(BAREBOX_ENV_NAME) $(BINARIES_DIR)
|
||||
endef
|
||||
endif
|
||||
|
||||
define BAREBOX_BUILD_CMDS
|
||||
$(BAREBOX_BUILD_BAREBOXENV_CMDS)
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(BAREBOX_MAKE_FLAGS) -C $(@D)
|
||||
$(BAREBOX_BUILD_CUSTOM_ENV)
|
||||
endef
|
||||
|
||||
define BAREBOX_INSTALL_IMAGES_CMDS
|
||||
if test -h $(@D)/barebox-flash-image ; then \
|
||||
cp -L $(@D)/barebox-flash-image $(BINARIES_DIR)/barebox.bin ; \
|
||||
else \
|
||||
cp $(@D)/barebox.bin $(BINARIES_DIR);\
|
||||
fi
|
||||
$(BAREBOX_INSTALL_CUSTOM_ENV)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_BAREBOX_BAREBOXENV),y)
|
||||
define BAREBOX_INSTALL_TARGET_CMDS
|
||||
cp $(@D)/bareboxenv $(TARGET_DIR)/usr/bin
|
||||
endef
|
||||
endif
|
||||
|
||||
# Checks to give errors that the user can understand
|
||||
# Must be before we call to kconfig-package
|
||||
ifeq ($(BR2_TARGET_BAREBOX)$(BR_BUILDING),yy)
|
||||
# We must use the user-supplied kconfig value, because
|
||||
# BAREBOX_KCONFIG_DEFCONFIG will at least contain the
|
||||
# trailing _defconfig
|
||||
ifeq ($(or $(BAREBOX_KCONFIG_FILE),$(call qstrip,$(BR2_TARGET_BAREBOX_BOARD_DEFCONFIG))),)
|
||||
$(error No Barebox config. Check your BR2_TARGET_BAREBOX_BOARD_DEFCONFIG or BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE settings)
|
||||
endif
|
||||
endif
|
||||
|
||||
$(eval $(kconfig-package))
|
||||
@@ -0,0 +1,35 @@
|
||||
comment "boot-wrapper-aarch64 needs a Linux kernel to be built"
|
||||
depends on BR2_aarch64
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
config BR2_TARGET_BOOT_WRAPPER_AARCH64
|
||||
bool "boot-wrapper-aarch64"
|
||||
depends on BR2_aarch64
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
The boot-wrapper-aarch64 is a small bootloader that makes it
|
||||
possible to start an Aarch64 kernel inside the available
|
||||
software simulators for the Aarch64 architecture.
|
||||
|
||||
git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wrapper-aarch64.git
|
||||
|
||||
if BR2_TARGET_BOOT_WRAPPER_AARCH64
|
||||
|
||||
config BR2_TARGET_BOOT_WRAPPER_AARCH64_DTS
|
||||
string "Device Tree Source name"
|
||||
default ""
|
||||
help
|
||||
Name of the Device Tree Source file to use to generate the
|
||||
Device Tree Blob that will be embedded in the image
|
||||
generated by the boot wrapper. Valid names are the .dts
|
||||
files from arch/arm64/boot/dts/ in the kernel source
|
||||
tree. The name must be specified without the .dts suffix.
|
||||
|
||||
config BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS
|
||||
string "Kernel bootargs"
|
||||
default ""
|
||||
help
|
||||
Kernel bootargs to embed inside the image generated by the
|
||||
boot wrapper.
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
#
|
||||
# boot-wrapper-aarch64
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BOOT_WRAPPER_AARCH64_VERSION = 4266507a84f8c06452109d38e0350d4759740694
|
||||
BOOT_WRAPPER_AARCH64_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wrapper-aarch64.git
|
||||
BOOT_WRAPPER_AARCH64_LICENSE = BSD3c
|
||||
BOOT_WRAPPER_AARCH64_LICENSE_FILES = LICENSE.txt
|
||||
BOOT_WRAPPER_AARCH64_DEPENDENCIES = linux
|
||||
BOOT_WRAPPER_AARCH64_INSTALL_IMAGES = YES
|
||||
|
||||
# The Git repository does not have the generated configure script and
|
||||
# Makefile.
|
||||
BOOT_WRAPPER_AARCH64_AUTORECONF = YES
|
||||
|
||||
BOOT_WRAPPER_AARCH64_DTB = /arch/arm64/boot/dts/$(basename $(call qstrip,$(BR2_TARGET_BOOT_WRAPPER_AARCH64_DTS))).dtb
|
||||
|
||||
# Fixup the path to the DTB in configure.ac. In the future, this
|
||||
# should hopefully be made more configurable by the
|
||||
# boot-wrapper-aarch64 developers.
|
||||
define BOOT_WRAPPER_AARCH64_FIX_DTB_NAME
|
||||
$(SED) 's%^KERN_DTB=.*%KERN_DTB=$(BOOT_WRAPPER_AARCH64_DTB)%' $(@D)/configure.ac
|
||||
endef
|
||||
|
||||
BOOT_WRAPPER_AARCH64_PRE_PATCH_HOOKS += BOOT_WRAPPER_AARCH64_FIX_DTB_NAME
|
||||
|
||||
BOOT_WRAPPER_AARCH64_CONF_OPTS = \
|
||||
--with-kernel-dir=$(LINUX_DIR) \
|
||||
--with-cmdline=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS)
|
||||
|
||||
# We need to convince the configure script that the Linux kernel tree
|
||||
# exists, as well as the DTB and the kernel Image. Even though those
|
||||
# are available on the build machine, the configure script uses
|
||||
# AC_CHECK_FILE tests, which are always disabled in cross-compilation
|
||||
# situations.
|
||||
BOOT_WRAPPER_AARCH64_CONF_ENV = \
|
||||
$(call AUTOCONF_AC_CHECK_FILE_VAL,$(LINUX_DIR))=yes \
|
||||
$(call AUTOCONF_AC_CHECK_FILE_VAL,$(LINUX_DIR)$(BOOT_WRAPPER_AARCH64_DTB))=yes \
|
||||
$(call AUTOCONF_AC_CHECK_FILE_VAL,$(LINUX_DIR)/arch/arm64/boot/Image)=yes
|
||||
|
||||
define BOOT_WRAPPER_AARCH64_INSTALL_IMAGES_CMDS
|
||||
cp $(@D)/linux-system.axf $(BINARIES_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
1
deprecated/firmware/buildroot/boot/common.mk
Normal file
1
deprecated/firmware/buildroot/boot/common.mk
Normal file
@@ -0,0 +1 @@
|
||||
include $(sort $(wildcard boot/*/*.mk))
|
||||
200
deprecated/firmware/buildroot/boot/grub/Config.in
Normal file
200
deprecated/firmware/buildroot/boot/grub/Config.in
Normal file
@@ -0,0 +1,200 @@
|
||||
config BR2_TARGET_GRUB
|
||||
bool "grub"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_HOSTARCH_NEEDS_IA32_COMPILER
|
||||
help
|
||||
The GRand Unified Bootloader for x86 systems.
|
||||
|
||||
Some notes on creating a disk image with Grub installed:
|
||||
1. Create an empty disk image
|
||||
dd if=/dev/zero of=disk.img bs=1M count=32
|
||||
2. Create one primary partition
|
||||
cfdisk -h 16 -s 63 disk.img
|
||||
3. Set up a loop device
|
||||
sudo losetup -f disk.img
|
||||
4. Set up loop devices per partitions
|
||||
sudo partx -a /dev/loop0
|
||||
5. Create the ext2 filesystem
|
||||
sudo mkfs.ext2 -L root /dev/loop0p1
|
||||
6. Mount the filesystem
|
||||
mount /dev/loop0p1 /mnt
|
||||
7. Extract the root filesystem
|
||||
sudo tar -C /mnt -xf output/images/rootfs.tar
|
||||
8. Unmount the filesystem, clean up loop device
|
||||
sudo umount /mnt
|
||||
sudo partx -d /dev/loop0
|
||||
sudo losetup -d /dev/loop0
|
||||
9. Install grub
|
||||
output/host/sbin/grub --device-map=/dev/null
|
||||
and in the grub shell, enter:
|
||||
device (hd0) disk.img
|
||||
geometry (hd0) <cylinders> 16 63
|
||||
root (hd0,0)
|
||||
setup (hd0)
|
||||
10. Image is ready
|
||||
Can be tested in Qemu, with:
|
||||
qemu-system-{i386,x86-64} -hda disk.img
|
||||
|
||||
if BR2_TARGET_GRUB
|
||||
|
||||
config BR2_TARGET_GRUB_SPLASH
|
||||
bool "Splashimage support"
|
||||
help
|
||||
Add support for splashimage.
|
||||
|
||||
A splashimage is a 14-color indexed .xpm picture which is
|
||||
displayed as background for the grub menu. See
|
||||
http://www.katspace.org/computers/Grub_Splash/ for details
|
||||
on how to generate a splashimage.
|
||||
|
||||
config BR2_TARGET_GRUB_DISKLESS
|
||||
bool "diskless support"
|
||||
help
|
||||
enable diskless support
|
||||
|
||||
menu "filesystem drivers"
|
||||
|
||||
config BR2_TARGET_GRUB_FS_EXT2
|
||||
bool "ext2"
|
||||
default y
|
||||
help
|
||||
Enable support for the ext2 filesystem in Grub
|
||||
|
||||
config BR2_TARGET_GRUB_FS_FAT
|
||||
bool "FAT"
|
||||
default y
|
||||
help
|
||||
Enable support for the FAT filesystem in Grub.
|
||||
|
||||
config BR2_TARGET_GRUB_FS_ISO9660
|
||||
bool "ISO9660"
|
||||
help
|
||||
Enable support for the ISO9660 filesystem in Grub.
|
||||
|
||||
config BR2_TARGET_GRUB_FS_JFS
|
||||
bool "IBM JFS"
|
||||
help
|
||||
Enable support for the JFS filesystem in Grub.
|
||||
|
||||
config BR2_TARGET_GRUB_FS_REISERFS
|
||||
bool "ReiserFS"
|
||||
help
|
||||
Enable support for the ReiserFS filesystem in Grub.
|
||||
|
||||
config BR2_TARGET_GRUB_FS_XFS
|
||||
bool "SGI XFS"
|
||||
help
|
||||
Enable support for the XFS filesystem in Grub.
|
||||
|
||||
endmenu
|
||||
|
||||
menu "network drivers"
|
||||
|
||||
config BR2_TARGET_GRUB_3c595
|
||||
bool "3Com595 driver"
|
||||
help
|
||||
enable 3Com595 driver
|
||||
|
||||
config BR2_TARGET_GRUB_3c90x
|
||||
bool "3Com90x driver"
|
||||
help
|
||||
enable 3Com90x driver
|
||||
|
||||
config BR2_TARGET_GRUB_davicom
|
||||
bool "Davicom driver"
|
||||
help
|
||||
enable Davicom driver
|
||||
|
||||
config BR2_TARGET_GRUB_e1000
|
||||
bool "Etherexpress Pro/1000 driver"
|
||||
help
|
||||
enable Etherexpress Pro/1000 driver
|
||||
|
||||
config BR2_TARGET_GRUB_eepro100
|
||||
bool "Etherexpress Pro/100 driver"
|
||||
help
|
||||
enable Etherexpress Pro/100 driver
|
||||
|
||||
config BR2_TARGET_GRUB_epic100
|
||||
bool "SMC 83c170 EPIC/100 driver"
|
||||
help
|
||||
enable SMC 83c170 EPIC/100 driver
|
||||
|
||||
config BR2_TARGET_GRUB_forcedeth
|
||||
bool "Nvidia Geforce driver"
|
||||
help
|
||||
enable Nvidia Geforce driver
|
||||
|
||||
config BR2_TARGET_GRUB_natsemi
|
||||
bool "NatSemi DP8381x driver"
|
||||
help
|
||||
enable NatSemi DP8381x driver
|
||||
|
||||
config BR2_TARGET_GRUB_ns83820
|
||||
bool "NS83820 driver"
|
||||
help
|
||||
enable NS83820 driver
|
||||
|
||||
config BR2_TARGET_GRUB_ns8390
|
||||
bool "NE2000 PCI driver"
|
||||
help
|
||||
enable NE2000 PCI driver
|
||||
|
||||
config BR2_TARGET_GRUB_pcnet32
|
||||
bool "AMD Lance/PCI PCNet/32 driver"
|
||||
help
|
||||
enable AMD Lance/PCI PCNet/32 driver
|
||||
|
||||
config BR2_TARGET_GRUB_pnic
|
||||
bool "Bochs Pseudo Nic driver"
|
||||
help
|
||||
enable Bochs Pseudo Nic driver
|
||||
|
||||
config BR2_TARGET_GRUB_rtl8139
|
||||
bool "Realtek 8139 driver"
|
||||
help
|
||||
enable Realtek 8139 driver
|
||||
|
||||
config BR2_TARGET_GRUB_r8169
|
||||
bool "Realtek 8169 driver"
|
||||
help
|
||||
enable Realtek 8169 driver
|
||||
|
||||
config BR2_TARGET_GRUB_sis900
|
||||
bool "SIS 900 and SIS 7016 driver"
|
||||
help
|
||||
enable SIS 900 and SIS 7016 driver
|
||||
|
||||
config BR2_TARGET_GRUB_tg3
|
||||
bool "Broadcom Tigon3 driver"
|
||||
help
|
||||
enable Broadcom Tigon3 driver
|
||||
|
||||
config BR2_TARGET_GRUB_tulip
|
||||
bool "Tulip driver"
|
||||
help
|
||||
enable Tulip driver
|
||||
|
||||
config BR2_TARGET_GRUB_tlan
|
||||
bool "TI ThunderLAN driver"
|
||||
help
|
||||
enable TI ThunderLAN driver
|
||||
|
||||
config BR2_TARGET_GRUB_undi
|
||||
bool "PXE UNDI driver"
|
||||
help
|
||||
enable PXE UNDI driver
|
||||
|
||||
config BR2_TARGET_GRUB_via_rhine
|
||||
bool "Rhine-I/II driver"
|
||||
help
|
||||
enable Rhine-I/II driver
|
||||
|
||||
config BR2_TARGET_GRUB_w89c840
|
||||
bool "Winbond W89c840 driver"
|
||||
help
|
||||
enable Winbond W89c840 driver
|
||||
|
||||
endmenu
|
||||
|
||||
endif # BR2_TARGET_GRUB
|
||||
1407
deprecated/firmware/buildroot/boot/grub/grub.100-autoreconf.patch
Normal file
1407
deprecated/firmware/buildroot/boot/grub/grub.100-autoreconf.patch
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
Index: b/stage2/disk_io.c
|
||||
===================================================================
|
||||
--- a/stage2/disk_io.c
|
||||
+++ b/stage2/disk_io.c
|
||||
@@ -365,7 +365,7 @@
|
||||
int
|
||||
devwrite (unsigned int sector, int sector_count, char *buf)
|
||||
{
|
||||
-#if defined(GRUB_UTIL) && defined(__linux__)
|
||||
+#if defined(GRUB_UTIL) && defined(__linux__) && !defined(SUPPORT_LOOPDEV)
|
||||
if (current_partition != 0xFFFFFF
|
||||
&& is_disk_device (device_map, current_drive))
|
||||
{
|
||||
@@ -0,0 +1,36 @@
|
||||
Index: b/grub/asmstub.c
|
||||
===================================================================
|
||||
--- a/grub/asmstub.c
|
||||
+++ b/grub/asmstub.c
|
||||
@@ -18,10 +18,13 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
+#include <features.h>
|
||||
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
|
||||
/* Try to use glibc's transparant LFS support. */
|
||||
#define _LARGEFILE_SOURCE 1
|
||||
/* lseek becomes synonymous with lseek64. */
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
+#endif
|
||||
|
||||
/* Simulator entry point. */
|
||||
int grub_stage2 (void);
|
||||
Index: b/lib/device.c
|
||||
===================================================================
|
||||
--- a/lib/device.c
|
||||
+++ b/lib/device.c
|
||||
@@ -18,10 +18,13 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
+#include <features.h>
|
||||
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
|
||||
/* Try to use glibc's transparant LFS support. */
|
||||
#define _LARGEFILE_SOURCE 1
|
||||
/* lseek becomes synonymous with lseek64. */
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
+#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
47064
deprecated/firmware/buildroot/boot/grub/grub.400-nic_update2.patch
Normal file
47064
deprecated/firmware/buildroot/boot/grub/grub.400-nic_update2.patch
Normal file
File diff suppressed because it is too large
Load Diff
3
deprecated/firmware/buildroot/boot/grub/grub.hash
Normal file
3
deprecated/firmware/buildroot/boot/grub/grub.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/g/grub/grub_0.97-68.dsc
|
||||
sha256 4e1d15d12dbd3e9208111d6b806ad5a9857ca8850c47877d36575b904559260b grub_0.97.orig.tar.gz
|
||||
sha256 a453489cf1fec5d311a0b76dea8c8b2ff67eee1a3eba6c06ab80864494d9773c grub_0.97-68.diff.gz
|
||||
109
deprecated/firmware/buildroot/boot/grub/grub.mk
Normal file
109
deprecated/firmware/buildroot/boot/grub/grub.mk
Normal file
@@ -0,0 +1,109 @@
|
||||
################################################################################
|
||||
#
|
||||
# grub
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GRUB_VERSION = 0.97
|
||||
GRUB_SOURCE = grub_$(GRUB_VERSION).orig.tar.gz
|
||||
GRUB_PATCH = grub_$(GRUB_VERSION)-68.diff.gz
|
||||
GRUB_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/g/grub
|
||||
|
||||
GRUB_LICENSE = GPLv2+
|
||||
GRUB_LICENSE_FILES = COPYING
|
||||
|
||||
# Passing -O0 since the default -O2 passed by Buildroot generates
|
||||
# non-working stage2. Passing --build-id=none to the linker, because
|
||||
# the ".note.gnu.build-id" ELF sections generated by default confuse
|
||||
# objcopy when generating raw binaries. Passing -fno-stack-protector
|
||||
# to avoid undefined references to __stack_chk_fail.
|
||||
GRUB_CFLAGS = \
|
||||
-DSUPPORT_LOOPDEV \
|
||||
-O0 -Wl,--build-id=none \
|
||||
-fno-stack-protector
|
||||
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_SPLASH),--enable-graphics,--disable-graphics)
|
||||
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_DISKLESS) += --enable-diskless
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_3c595) += --enable-3c595
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_3c90x) += --enable-3c90x
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_davicom) += --enable-davicom
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_e1000) += --enable-e1000
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_eepro100) += --enable-eepro100
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_epic100) += --enable-epic100
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_forcedeth) += --enable-forcedeth
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_natsemi) += --enable-natsemi
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_ns83820) += --enable-ns83820
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_ns8390) += --enable-ns8390
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_pcnet32) += --enable-pcnet32
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_pnic) += --enable-pnic
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_rtl8139) += --enable-rtl8139
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_r8169) += --enable-r8169
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_sis900) += --enable-sis900
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_tg3) += --enable-tg3
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_tulip) += --enable-tulip
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_tlan) += --enable-tlan
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_undi) += --enable-undi
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_via_rhine) += --enable-via-rhine
|
||||
GRUB_CONFIG-$(BR2_TARGET_GRUB_w89c840) += --enable-w89c840
|
||||
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_FS_EXT2),--enable-ext2fs,--disable-ext2fs)
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_FS_FAT),--enable-fat,--disable-fat)
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_FS_ISO9660),--enable-iso9660,--disable-iso9660)
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_FS_JFS),--enable-jfs,--disable-jfs)
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_FS_REISERFS),--enable-reiserfs,--disable-reiserfs)
|
||||
GRUB_CONFIG-y += $(if $(BR2_TARGET_GRUB_FS_XFS),--enable-xfs,--disable-xfs)
|
||||
GRUB_CONFIG-y += --disable-ffs --disable-ufs2 --disable-minix --disable-vstafs
|
||||
|
||||
GRUB_STAGE_1_5_TO_INSTALL += $(if $(BR2_TARGET_GRUB_FS_EXT2),e2fs)
|
||||
GRUB_STAGE_1_5_TO_INSTALL += $(if $(BR2_TARGET_GRUB_FS_FAT),fat)
|
||||
GRUB_STAGE_1_5_TO_INSTALL += $(if $(BR2_TARGET_GRUB_FS_ISO9660),iso9660)
|
||||
GRUB_STAGE_1_5_TO_INSTALL += $(if $(BR2_TARGET_GRUB_FS_JFS),jfs)
|
||||
GRUB_STAGE_1_5_TO_INSTALL += $(if $(BR2_TARGET_GRUB_FS_REISERFS),reiserfs)
|
||||
GRUB_STAGE_1_5_TO_INSTALL += $(if $(BR2_TARGET_GRUB_FS_XFS),xfs)
|
||||
|
||||
define GRUB_DEBIAN_PATCHES
|
||||
# Apply the patches from the Debian patch
|
||||
(cd $(@D) ; for f in `cat debian/patches/series | grep -v ^#` ; do \
|
||||
cat debian/patches/$$f | patch -g0 -p1 ; \
|
||||
done)
|
||||
endef
|
||||
|
||||
GRUB_POST_PATCH_HOOKS += GRUB_DEBIAN_PATCHES
|
||||
|
||||
GRUB_CONF_ENV = \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS) $(GRUB_CFLAGS) -m32"
|
||||
|
||||
GRUB_CONF_OPTS = \
|
||||
--disable-auto-linux-mem-opt \
|
||||
$(GRUB_CONFIG-y)
|
||||
|
||||
ifeq ($(BR2_TARGET_GRUB_SPLASH),y)
|
||||
define GRUB_INSTALL_SPLASH
|
||||
$(INSTALL) -D -m 0644 boot/grub/splash.xpm.gz $(TARGET_DIR)/boot/grub/splash.xpm.gz
|
||||
endef
|
||||
else
|
||||
define GRUB_INSTALL_SPLASH
|
||||
$(SED) '/^splashimage/d' $(TARGET_DIR)/boot/grub/menu.lst
|
||||
endef
|
||||
endif
|
||||
|
||||
# We're cheating here as we're installing the grub binary not in the
|
||||
# target directory (where it is useless), but in the host
|
||||
# directory. This grub binary can be used to install grub into the MBR
|
||||
# of a disk or disk image.
|
||||
|
||||
define GRUB_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/grub/grub $(HOST_DIR)/sbin/grub
|
||||
$(INSTALL) -D -m 0755 $(@D)/stage1/stage1 $(TARGET_DIR)/boot/grub/stage1
|
||||
for f in $(GRUB_STAGE_1_5_TO_INSTALL) ; do \
|
||||
$(INSTALL) -D -m 0755 $(@D)/stage2/$${f}_stage1_5 \
|
||||
$(TARGET_DIR)/boot/grub/$${f}_stage1_5 ; \
|
||||
done
|
||||
$(INSTALL) -D -m 0644 $(@D)/stage2/stage2 $(TARGET_DIR)/boot/grub/stage2
|
||||
$(INSTALL) -D -m 0644 boot/grub/menu.lst $(TARGET_DIR)/boot/grub/menu.lst
|
||||
$(GRUB_INSTALL_SPLASH)
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
16
deprecated/firmware/buildroot/boot/grub/menu.lst
Normal file
16
deprecated/firmware/buildroot/boot/grub/menu.lst
Normal file
@@ -0,0 +1,16 @@
|
||||
default 0
|
||||
timeout 10
|
||||
|
||||
# Used when no splashimage is used
|
||||
color cyan/blue white/blue
|
||||
|
||||
# Gets enabled/disabled depending on Grub support for splashimage
|
||||
splashimage (hd0,0)/boot/grub/splash.xpm.gz
|
||||
|
||||
# Used when a splashimage is enabled
|
||||
foreground 000000
|
||||
background cccccc
|
||||
|
||||
title Buildroot
|
||||
root (hd0,0)
|
||||
kernel /boot/bzImage rw root=/dev/sda1
|
||||
BIN
deprecated/firmware/buildroot/boot/grub/splash.xpm.gz
Normal file
BIN
deprecated/firmware/buildroot/boot/grub/splash.xpm.gz
Normal file
Binary file not shown.
169
deprecated/firmware/buildroot/boot/grub2/Config.in
Normal file
169
deprecated/firmware/buildroot/boot/grub2/Config.in
Normal file
@@ -0,0 +1,169 @@
|
||||
config BR2_TARGET_GRUB2
|
||||
bool "grub2"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
help
|
||||
GNU GRUB is a Multiboot boot loader. It was derived from
|
||||
GRUB, the GRand Unified Bootloader, which was originally
|
||||
designed and implemented by Erich Stefan Boleyn. GRUB 2 has
|
||||
replaced what was formerly known as GRUB (i.e. version
|
||||
0.9x), which has, in turn, become GRUB Legacy.
|
||||
|
||||
Amongst others, GRUB2 offers EFI support, which GRUB Legacy
|
||||
doesn't provide.
|
||||
|
||||
Notes on using Grub2 for BIOS-based platforms
|
||||
=============================================
|
||||
|
||||
1. Create a disk image
|
||||
dd if=/dev/zero of=disk.img bs=1M count=32
|
||||
2. Partition it (either legacy or GPT style partitions work)
|
||||
cfdisk disk.img
|
||||
- Create one partition, type Linux, for the root
|
||||
filesystem. The only constraint is to make sure there
|
||||
is enough free space *before* the first partition to
|
||||
store Grub2. Leaving 1 MB of free space is safe.
|
||||
3. Setup loop device and loop partitions
|
||||
sudo losetup -f disk.img
|
||||
sudo partx -a /dev/loop0
|
||||
4. Prepare the root partition
|
||||
sudo mkfs.ext3 -L root /dev/loop0p1
|
||||
sudo mount /dev/loop0p1 /mnt
|
||||
sudo tar -C /mnt -xf output/images/rootfs.tar
|
||||
sudo umount /mnt
|
||||
5. Install Grub2
|
||||
sudo ./output/host/usr/sbin/grub-bios-setup \
|
||||
-b ./output/host/usr/lib/grub/i386-pc/boot.img \
|
||||
-c ./output/images/grub.img -d . /dev/loop0
|
||||
6. Cleanup loop device
|
||||
sudo partx -d /dev/loop0
|
||||
sudo losetup -d /dev/loop0
|
||||
7. Your disk.img is ready!
|
||||
|
||||
Using genimage
|
||||
--------------
|
||||
|
||||
If you use genimage to generate your complete image,
|
||||
installing Grub can be tricky. Here is how to achieve Grub's
|
||||
installation with genimage:
|
||||
|
||||
partition boot {
|
||||
in-partition-table = "no"
|
||||
image = "path_to_boot.img"
|
||||
offset = 0
|
||||
size = 512
|
||||
}
|
||||
partition grub {
|
||||
in-partition-table = "no"
|
||||
image = "path_to_grub.img"
|
||||
offset = 512
|
||||
}
|
||||
|
||||
The result is not byte to byte identical to what
|
||||
grub-bios-setup does but it works anyway.
|
||||
|
||||
To test your BIOS image in Qemu
|
||||
-------------------------------
|
||||
|
||||
qemu-system-{i386,x86-64} -hda disk.img
|
||||
|
||||
Notes on using Grub2 for EFI-based platforms
|
||||
============================================
|
||||
|
||||
1. Create a disk image
|
||||
dd if=/dev/zero of=disk.img bs=1M count=32
|
||||
2. Partition it with GPT partitions
|
||||
cgdisk disk.img
|
||||
- Create a first partition, type EF00, for the
|
||||
bootloader and kernel image
|
||||
- Create a second partition, type 8300, for the root
|
||||
filesystem.
|
||||
3. Setup loop device and loop partitions
|
||||
sudo losetup -f disk.img
|
||||
sudo partx -a /dev/loop0
|
||||
4. Prepare the boot partition
|
||||
sudo mkfs.vfat -n boot /dev/loop0p1
|
||||
sudo mount /dev/loop0p1 /mnt
|
||||
sudo cp -a output/images/efi-part/* /mnt/
|
||||
sudo cp output/images/bzImage /mnt/
|
||||
sudo umount /mnt
|
||||
5. Prepare the root partition
|
||||
sudo mkfs.ext3 -L root /dev/loop0p2
|
||||
sudo mount /dev/loop0p2 /mnt
|
||||
sudo tar -C /mnt -xf output/images/rootfs.tar
|
||||
sudo umount /mnt
|
||||
6 Cleanup loop device
|
||||
sudo partx -d /dev/loop0
|
||||
sudo losetup -d /dev/loop0
|
||||
7. Your disk.img is ready!
|
||||
|
||||
To test your EFI image in Qemu
|
||||
------------------------------
|
||||
|
||||
1. Download the EFI BIOS for Qemu
|
||||
Version IA32 or X64 depending on the chosen Grub2
|
||||
platform (i386-efi vs. x86-64-efi)
|
||||
http://sourceforge.net/projects/edk2/files/OVMF/
|
||||
2. Extract, and rename OVMF.fd to bios.bin and
|
||||
CirrusLogic5446.rom to vgabios-cirrus.bin.
|
||||
3. qemu-system-{i386,x86-64} -L ovmf-dir/ -hda disk.img
|
||||
4. Make sure to pass pci=nocrs to the kernel command line,
|
||||
to workaround a bug in the EFI BIOS regarding the
|
||||
EFI framebuffer.
|
||||
|
||||
http://www.gnu.org/software/grub/
|
||||
|
||||
if BR2_TARGET_GRUB2
|
||||
|
||||
choice
|
||||
prompt "Platform"
|
||||
|
||||
config BR2_TARGET_GRUB2_I386_PC
|
||||
bool "i386-pc"
|
||||
help
|
||||
Select this option if the platform you're targetting is a
|
||||
x86 or x86-64 legacy BIOS based platform.
|
||||
|
||||
config BR2_TARGET_GRUB2_I386_EFI
|
||||
bool "i386-efi"
|
||||
help
|
||||
Select this option if the platform you're targetting has a
|
||||
32 bits EFI BIOS. Note that some x86-64 platforms use a 32
|
||||
bits EFI BIOS, and this option should be used in this case.
|
||||
|
||||
config BR2_TARGET_GRUB2_X86_64_EFI
|
||||
bool "x86-64-efi"
|
||||
depends on BR2_ARCH_IS_64
|
||||
help
|
||||
Select this option if the platform you're targetting has a
|
||||
64 bits EFI BIOS.
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_TARGET_GRUB2_I386_PC
|
||||
|
||||
config BR2_TARGET_GRUB2_BOOT_PARTITION
|
||||
string "boot partition"
|
||||
default "hd0,msdos1"
|
||||
help
|
||||
Specify the partition where the /boot/grub/grub.cfg file is
|
||||
located. Use 'hd0,msdos1' for the first partition of the
|
||||
first disk if using a legacy partition table, or 'hd0,gpt1'
|
||||
if using GPT partition table.
|
||||
|
||||
endif # BR2_TARGET_GRUB2_I386_PC
|
||||
|
||||
config BR2_TARGET_GRUB2_BUILTIN_MODULES
|
||||
string "builtin modules"
|
||||
default "boot linux ext2 fat part_msdos part_gpt normal biosdisk" if BR2_TARGET_GRUB2_I386_PC
|
||||
default "boot linux ext2 fat part_msdos part_gpt normal efi_gop" \
|
||||
if BR2_TARGET_GRUB2_I386_EFI || BR2_TARGET_GRUB2_X86_64_EFI
|
||||
|
||||
config BR2_TARGET_GRUB2_BUILTIN_CONFIG
|
||||
string "builtin config"
|
||||
help
|
||||
Path to a Grub 2 configuration file that will be embedded
|
||||
into the Grub image itself. This allows to set the root
|
||||
device and other configuration parameters, but however menu
|
||||
entries cannot be described in this embedded configuration.
|
||||
|
||||
endif # BR2_TARGET_GRUB2
|
||||
6
deprecated/firmware/buildroot/boot/grub2/grub.cfg
Normal file
6
deprecated/firmware/buildroot/boot/grub2/grub.cfg
Normal file
@@ -0,0 +1,6 @@
|
||||
set default="0"
|
||||
set timeout="5"
|
||||
|
||||
menuentry "Buildroot" {
|
||||
linux /boot/bzImage root=/dev/sda1 console=tty1
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
ISO C11 removes the specification of gets() from the C language, eglibc 2.16+ removed it
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Upstream-Status: Pending
|
||||
Index: grub-1.99/grub-core/gnulib/stdio.in.h
|
||||
===================================================================
|
||||
--- grub-1.99.orig/grub-core/gnulib/stdio.in.h 2010-12-01 06:45:43.000000000 -0800
|
||||
+++ grub-1.99/grub-core/gnulib/stdio.in.h 2012-07-04 12:25:02.057099107 -0700
|
||||
@@ -140,8 +140,10 @@
|
||||
/* It is very rare that the developer ever has full control of stdin,
|
||||
so any use of gets warrants an unconditional warning. Assume it is
|
||||
always declared, since it is required by C89. */
|
||||
+#if defined gets
|
||||
#undef gets
|
||||
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
+#endif
|
||||
|
||||
#if @GNULIB_FOPEN@
|
||||
# if @REPLACE_FOPEN@
|
||||
2
deprecated/firmware/buildroot/boot/grub2/grub2.hash
Normal file
2
deprecated/firmware/buildroot/boot/grub2/grub2.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458 grub-2.00.tar.xz
|
||||
107
deprecated/firmware/buildroot/boot/grub2/grub2.mk
Normal file
107
deprecated/firmware/buildroot/boot/grub2/grub2.mk
Normal file
@@ -0,0 +1,107 @@
|
||||
################################################################################
|
||||
#
|
||||
# grub2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GRUB2_VERSION = 2.00
|
||||
GRUB2_SITE = $(BR2_GNU_MIRROR)/grub
|
||||
GRUB2_SOURCE = grub-$(GRUB2_VERSION).tar.xz
|
||||
GRUB2_LICENSE = GPLv3+
|
||||
GRUB2_LICENSE_FILES = COPYING
|
||||
GRUB2_DEPENDENCIES = host-bison host-flex
|
||||
|
||||
GRUB2_BUILTIN_MODULES = $(call qstrip,$(BR2_TARGET_GRUB2_BUILTIN_MODULES))
|
||||
GRUB2_BUILTIN_CONFIG = $(call qstrip,$(BR2_TARGET_GRUB2_BUILTIN_CONFIG))
|
||||
GRUB2_BOOT_PARTITION = $(call qstrip,$(BR2_TARGET_GRUB2_BOOT_PARTITION))
|
||||
|
||||
ifeq ($(BR2_TARGET_GRUB2_I386_PC),y)
|
||||
GRUB2_IMAGE = $(BINARIES_DIR)/grub.img
|
||||
GRUB2_CFG = $(TARGET_DIR)/boot/grub/grub.cfg
|
||||
GRUB2_PREFIX = ($(GRUB2_BOOT_PARTITION))/boot/grub
|
||||
GRUB2_TUPLE = i386-pc
|
||||
GRUB2_TARGET = i386
|
||||
GRUB2_PLATFORM = pc
|
||||
else ifeq ($(BR2_TARGET_GRUB2_I386_EFI),y)
|
||||
GRUB2_IMAGE = $(BINARIES_DIR)/efi-part/EFI/BOOT/bootia32.efi
|
||||
GRUB2_CFG = $(BINARIES_DIR)/efi-part/EFI/BOOT/grub.cfg
|
||||
GRUB2_PREFIX = /EFI/BOOT
|
||||
GRUB2_TUPLE = i386-efi
|
||||
GRUB2_TARGET = i386
|
||||
GRUB2_PLATFORM = efi
|
||||
else ifeq ($(BR2_TARGET_GRUB2_X86_64_EFI),y)
|
||||
GRUB2_IMAGE = $(BINARIES_DIR)/efi-part/EFI/BOOT/bootx64.efi
|
||||
GRUB2_CFG = $(BINARIES_DIR)/efi-part/EFI/BOOT/grub.cfg
|
||||
GRUB2_PREFIX = /EFI/BOOT
|
||||
GRUB2_TUPLE = x86_64-efi
|
||||
GRUB2_TARGET = x86_64
|
||||
GRUB2_PLATFORM = efi
|
||||
endif
|
||||
|
||||
# Grub2 is kind of special: it considers CC, LD and so on to be the
|
||||
# tools to build the native tools (i.e to be executed on the build
|
||||
# machine), and uses TARGET_CC, TARGET_CFLAGS, TARGET_CPPFLAGS,
|
||||
# TARGET_LDFLAGS to build the bootloader itself. However, to add to
|
||||
# the confusion, it also uses NM, OBJCOPY and STRIP to build the
|
||||
# bootloader itself; none of these are used to build the native
|
||||
# tools.
|
||||
|
||||
GRUB2_CONF_ENV = \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
CPP="$(HOSTCC) -E" \
|
||||
TARGET_CC="$(TARGET_CC)" \
|
||||
TARGET_CFLAGS="$(TARGET_CFLAGS)" \
|
||||
TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||
TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
NM="$(TARGET_NM)" \
|
||||
OBJCOPY="$(TARGET_OBJCOPY)" \
|
||||
STRIP="$(TARGET_STRIP)"
|
||||
|
||||
GRUB2_CONF_OPTS = \
|
||||
--target=$(GRUB2_TARGET) \
|
||||
--with-platform=$(GRUB2_PLATFORM) \
|
||||
--disable-grub-mkfont \
|
||||
--enable-efiemu=no \
|
||||
--enable-liblzma=no \
|
||||
--enable-device-mapper=no \
|
||||
--enable-libzfs=no \
|
||||
--disable-werror
|
||||
|
||||
# We don't want all the native tools and Grub2 modules to be installed
|
||||
# in the target. So we in fact install everything into the host
|
||||
# directory, and the image generation process (below) will use the
|
||||
# grub-mkimage tool and Grub2 modules from the host directory.
|
||||
|
||||
GRUB2_INSTALL_TARGET_OPTS = DESTDIR=$(HOST_DIR) install
|
||||
|
||||
ifeq ($(BR2_TARGET_GRUB2_I386_PC),y)
|
||||
define GRUB2_IMAGE_INSTALL_ELTORITO
|
||||
cat $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE)/cdboot.img $(GRUB2_IMAGE) > \
|
||||
$(BINARIES_DIR)/grub-eltorito.img
|
||||
endef
|
||||
endif
|
||||
|
||||
define GRUB2_IMAGE_INSTALLATION
|
||||
mkdir -p $(dir $(GRUB2_IMAGE))
|
||||
$(HOST_DIR)/usr/bin/grub-mkimage \
|
||||
-d $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE) \
|
||||
-O $(GRUB2_TUPLE) \
|
||||
-o $(GRUB2_IMAGE) \
|
||||
-p "$(GRUB2_PREFIX)" \
|
||||
$(if $(GRUB2_BUILTIN_CONFIG),-c $(GRUB2_BUILTIN_CONFIG)) \
|
||||
$(GRUB2_BUILTIN_MODULES)
|
||||
mkdir -p $(dir $(GRUB2_CFG))
|
||||
$(INSTALL) -D -m 0644 boot/grub2/grub.cfg $(GRUB2_CFG)
|
||||
$(GRUB2_IMAGE_INSTALL_ELTORITO)
|
||||
endef
|
||||
GRUB2_POST_INSTALL_TARGET_HOOKS += GRUB2_IMAGE_INSTALLATION
|
||||
|
||||
ifeq ($(GRUB2_PLATFORM),efi)
|
||||
define GRUB2_EFI_STARTUP_NSH
|
||||
echo $(notdir $(GRUB2_IMAGE)) > \
|
||||
$(BINARIES_DIR)/efi-part/startup.nsh
|
||||
endef
|
||||
GRUB2_POST_INSTALL_TARGET_HOOKS += GRUB2_EFI_STARTUP_NSH
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
27
deprecated/firmware/buildroot/boot/gummiboot/Config.in
Normal file
27
deprecated/firmware/buildroot/boot/gummiboot/Config.in
Normal file
@@ -0,0 +1,27 @@
|
||||
config BR2_TARGET_GUMMIBOOT
|
||||
bool "gummiboot"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_GNU_EFI
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
|
||||
depends on BR2_USE_WCHAR # util-linux
|
||||
help
|
||||
gummiboot is a simple UEFI boot manager which executes
|
||||
configured EFI images. The default entry is selected by a
|
||||
configured pattern (glob) or an on-screen menu.
|
||||
|
||||
gummiboot operates on the EFI System Partition (ESP)
|
||||
only. Configuration file fragments, kernels, initrds, other
|
||||
EFI images need to reside on the ESP. Linux kernels need to
|
||||
be built with CONFIG_EFI_STUB to be able to be directly
|
||||
executed as an EFI image.
|
||||
|
||||
See the Grub2 help text for details on preparing an EFI
|
||||
capable disk image using Gummiboot: the instructions are
|
||||
exactly the same, except that the Gummiboot configuration
|
||||
files will be located in /loader/ inside the EFI partition.
|
||||
|
||||
http://freedesktop.org/wiki/Software/gummiboot/
|
||||
|
||||
comment "gummiboot needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,4 @@
|
||||
title Buildroot
|
||||
version 1
|
||||
linux /bzImage
|
||||
options console=ttyS0 root=/dev/sda2
|
||||
43
deprecated/firmware/buildroot/boot/gummiboot/gummiboot.mk
Normal file
43
deprecated/firmware/buildroot/boot/gummiboot/gummiboot.mk
Normal file
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# gummiboot
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GUMMIBOOT_SITE = http://cgit.freedesktop.org/gummiboot
|
||||
GUMMIBOOT_SITE_METHOD = git
|
||||
GUMMIBOOT_VERSION = 43
|
||||
GUMMIBOOT_LICENSE = LGPLv2.1+
|
||||
GUMMIBOOT_LICENSE_FILES = LICENSE
|
||||
|
||||
# The git archive does not have the autoconf/automake stuff generated.
|
||||
GUMMIBOOT_AUTORECONF = YES
|
||||
GUMMIBOOT_DEPENDENCIES = gnu-efi host-pkgconf util-linux
|
||||
GUMMIBOOT_INSTALL_TARGET = NO
|
||||
GUMMIBOOT_INSTALL_IMAGES = YES
|
||||
|
||||
ifeq ($(BR2_i386),y)
|
||||
GUMMIBOOT_IMGARCH = ia32
|
||||
else ifeq ($(BR2_x86_64),y)
|
||||
GUMMIBOOT_IMGARCH = x64
|
||||
endif
|
||||
|
||||
GUMMIBOOT_CONF_OPTS = \
|
||||
--host=$(BR2_ARCH) \
|
||||
--with-efi-libdir=$(STAGING_DIR)/usr/lib \
|
||||
--with-efi-ldsdir=$(STAGING_DIR)/usr/lib \
|
||||
--with-efi-includedir=$(STAGING_DIR)/usr/include \
|
||||
--disable-manpages
|
||||
|
||||
define GUMMIBOOT_INSTALL_IMAGES_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/gummiboot$(GUMMIBOOT_IMGARCH).efi \
|
||||
$(BINARIES_DIR)/efi-part/EFI/BOOT/boot$(GUMMIBOOT_IMGARCH).efi
|
||||
echo "boot$(GUMMIBOOT_IMGARCH).efi" > \
|
||||
$(BINARIES_DIR)/efi-part/startup.nsh
|
||||
$(INSTALL) -D -m 0644 boot/gummiboot/loader.conf \
|
||||
$(BINARIES_DIR)/efi-part/loader/loader.conf
|
||||
$(INSTALL) -D -m 0644 boot/gummiboot/buildroot.conf \
|
||||
$(BINARIES_DIR)/efi-part/loader/entries/buildroot.conf
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
2
deprecated/firmware/buildroot/boot/gummiboot/loader.conf
Normal file
2
deprecated/firmware/buildroot/boot/gummiboot/loader.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
timeout 3
|
||||
default buildroot
|
||||
10
deprecated/firmware/buildroot/boot/lpc32xxcdl/Config.in
Normal file
10
deprecated/firmware/buildroot/boot/lpc32xxcdl/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_TARGET_LPC32XXCDL
|
||||
depends on BR2_arm926t
|
||||
bool "LPC32XX CDL (kickstart and S1L)"
|
||||
|
||||
if BR2_TARGET_LPC32XXCDL
|
||||
|
||||
config BR2_TARGET_LPC32XXCDL_BOARDNAME
|
||||
string "LPC32xx board name"
|
||||
|
||||
endif #BR2_TARGET_LPC32XXCDL
|
||||
@@ -0,0 +1,52 @@
|
||||
Use CROSS_COMPILE as compiler name and stop using libc
|
||||
|
||||
Signed-off-by: Alexandre Belloni <abelloni@adeneo-embedded.com>
|
||||
---
|
||||
makerule/lpc32xx/make.lpc32xx.gnu | 22 +++++++++++-----------
|
||||
1 files changed, 11 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/makerule/lpc32xx/make.lpc32xx.gnu b/makerule/lpc32xx/make.lpc32xx.gnu
|
||||
index 1014c28..3277d99 100644
|
||||
--- a/makerule/lpc32xx/make.lpc32xx.gnu
|
||||
+++ b/makerule/lpc32xx/make.lpc32xx.gnu
|
||||
@@ -27,19 +27,19 @@ CFLAGS += -mno-sched-prolog -fno-hosted -mno-thumb-interwork -ffunction-sectio
|
||||
CFLAGS += -I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR)
|
||||
AFLAGS = -mcpu=arm926ej-s
|
||||
AFLAGS += -I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR)
|
||||
-CC = arm-none-eabi-gcc
|
||||
-AS = arm-none-eabi-as
|
||||
-AR = arm-none-eabi-ar -r
|
||||
-LD = arm-none-eabi-gcc
|
||||
-NM = arm-none-eabi-nm
|
||||
-OBJDUMP = arm-none-eabi-objdump
|
||||
-OBJCOPY = arm-none-eabi-objcopy
|
||||
-READELF = arm-none-eabi-readelf
|
||||
+CC = $(CROSS_COMPILE)gcc
|
||||
+AS = $(CROSS_COMPILE)as
|
||||
+AR = $(CROSS_COMPILE)ar -r
|
||||
+LD = $(CROSS_COMPILE)gcc
|
||||
+NM = $(CROSS_COMPILE)nm
|
||||
+OBJDUMP = $(CROSS_COMPILE)objdump
|
||||
+OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
+READELF = $(CROSS_COMPILE)readelf
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
|
||||
LK = -static
|
||||
LK += -Wl,--start-group $(TARGET_CSP_LIB) $(TARGET_BSP_LIB) $(TARGET_GEN_LIB)
|
||||
-LK += -lgcc -lc -lg -lm -lstdc++ -lsupc++
|
||||
+LK += -nostdlib -lgcc #-lc -lg -lm -lstdc++ -lsupc++
|
||||
LK += -Wl,--end-group
|
||||
MAP = -Xlinker -Map -Xlinker
|
||||
LDESC = -Xlinker -T
|
||||
@@ -47,6 +47,6 @@ ENTRY = -e
|
||||
BIN = -bin
|
||||
EXT = .elf
|
||||
LEXT =
|
||||
-ELFTOREC =arm-none-eabi-objcopy -O srec --strip-all --verbose
|
||||
-ELFTOBIN =arm-none-eabi-objcopy -I elf32-littlearm -O binary --strip-all --verbose
|
||||
+ELFTOREC = $(OBJCOPY) -O srec --strip-all --verbose
|
||||
+ELFTOBIN = $(OBJCOPY) -I elf32-littlearm -O binary --strip-all --verbose
|
||||
REC =.srec
|
||||
--
|
||||
1.7.7.3
|
||||
|
||||
@@ -0,0 +1,969 @@
|
||||
Remove duplicated files to stop the linker from complaining about duplicate
|
||||
symbols
|
||||
|
||||
Signed-off-by: Alexandre Belloni <abelloni@adeneo-embedded.com>
|
||||
---
|
||||
--- a/csps/lpc32xx/bsps/fdi3250/startup/examples/s1l/sysapi_timer.c 2011-10-05 19:10:37.000000000 +0200
|
||||
+++ /dev/null 2012-01-01 16:39:47.918907000 +0100
|
||||
@@ -1,212 +0,0 @@
|
||||
-/***********************************************************************
|
||||
- * $Id:: sysapi_timer.c 3394 2010-05-06 17:56:27Z usb10132 $
|
||||
- *
|
||||
- * Project: Time support functions
|
||||
- *
|
||||
- * Description:
|
||||
- * Implements the following functions required for the S1L API
|
||||
- * time_init
|
||||
- * time_reset
|
||||
- * time_start
|
||||
- * time_stop
|
||||
- * time_get
|
||||
- * time_get_rate
|
||||
- *
|
||||
- ***********************************************************************
|
||||
- * Software that is described herein is for illustrative purposes only
|
||||
- * which provides customers with programming information regarding the
|
||||
- * products. This software is supplied "AS IS" without any warranties.
|
||||
- * NXP Semiconductors assumes no responsibility or liability for the
|
||||
- * use of the software, conveys no license or title under any patent,
|
||||
- * copyright, or mask work right to the product. NXP Semiconductors
|
||||
- * reserves the right to make changes in the software without
|
||||
- * notification. NXP Semiconductors also make no representation or
|
||||
- * warranty that such application will be suitable for the specified
|
||||
- * use without further testing or modification.
|
||||
- **********************************************************************/
|
||||
-
|
||||
-#include "s1l_sys_inf.h"
|
||||
-#include "lpc32xx_intc_driver.h"
|
||||
-#include "lpc32xx_timer_driver.h"
|
||||
-
|
||||
-static UNS_64 base_rate;
|
||||
-static INT_32 tdev = 0;
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: time_init
|
||||
- *
|
||||
- * Purpose: Initializes time system
|
||||
- *
|
||||
- * Processing: Initializes the system timer.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: 0 if the init failed, otherwise non-zero
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-INT_32 time_init(void)
|
||||
-{
|
||||
- TMR_PSCALE_SETUP_T pscale;
|
||||
-
|
||||
- /* Open timer driver */
|
||||
- if (tdev == 0)
|
||||
- {
|
||||
- tdev = timer_open((void *) TIMER_CNTR0, 0);
|
||||
- if (tdev != 0)
|
||||
- {
|
||||
- /* Use a prescale count to 100000 */
|
||||
- pscale.ps_tick_val = 100000;
|
||||
- pscale.ps_us_val = 0; /* Not needed when ps_tick_val != 0 */
|
||||
- timer_ioctl(tdev, TMR_SETUP_PSCALE, (INT_32) &pscale);
|
||||
-
|
||||
- /* Get timer clock rate */
|
||||
- base_rate = (UNS_64) timer_ioctl(tdev, TMR_GET_STATUS,
|
||||
- TMR_GET_CLOCK);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- return tdev;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: time_reset
|
||||
- *
|
||||
- * Purpose: Resets system timer
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: Nothing
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-void time_reset(void)
|
||||
-{
|
||||
- if (tdev != 0)
|
||||
- {
|
||||
- timer_ioctl(tdev, TMR_RESET, 1);
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: time_start
|
||||
- *
|
||||
- * Purpose: Starts system timer
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: Nothing
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-void time_start(void)
|
||||
-{
|
||||
- if (tdev != 0)
|
||||
- {
|
||||
- timer_ioctl(tdev, TMR_ENABLE, 1);
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: time_stop
|
||||
- *
|
||||
- * Purpose: Stops system timer
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: Nothing
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-void time_stop(void)
|
||||
-{
|
||||
- if (tdev != 0)
|
||||
- {
|
||||
- timer_ioctl(tdev, TMR_ENABLE, 0);
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: time_get
|
||||
- *
|
||||
- * Purpose: Returns current system time value
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: The number of ticks of the timer counter
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-UNS_64 time_get(void)
|
||||
-{
|
||||
- TMR_COUNTS_T tcounts;
|
||||
- UNS_64 ticks = 0;
|
||||
-
|
||||
- if (tdev != 0)
|
||||
- {
|
||||
- timer_ioctl(tdev, TMR_GET_COUNTS, (INT_32) &tcounts);
|
||||
-
|
||||
- /* Compute number of timer ticks */
|
||||
- ticks = (UNS_64) tcounts.count_val * 100000;
|
||||
- ticks = ticks + (UNS_64) tcounts.ps_count_val;
|
||||
- }
|
||||
-
|
||||
- return ticks;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: time_get_rate
|
||||
- *
|
||||
- * Purpose:
|
||||
- * Returns base tick rate (ticks per second) of the time counter
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: The timer tick rate (in ticks per second)
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-UNS_64 time_get_rate(void)
|
||||
-{
|
||||
- return base_rate;
|
||||
-}
|
||||
-
|
||||
--- a/csps/lpc32xx/bsps/fdi3250/startup/examples/s1l/sys_mmu_cmd_group.c 2011-10-05 19:10:37.000000000 +0200
|
||||
+++ /dev/null 2012-01-01 16:39:47.918907000 +0100
|
||||
@@ -1,746 +0,0 @@
|
||||
-/***********************************************************************
|
||||
- * $Id:: sys_mmu_cmd_group.c 3430 2010-05-07 17:39:08Z usb10132 $
|
||||
- *
|
||||
- * Project: Command processor for peek, poke, dump, and fill
|
||||
- *
|
||||
- * Description:
|
||||
- * Processes commands from the command prompt
|
||||
- *
|
||||
- ***********************************************************************
|
||||
- * Software that is described herein is for illustrative purposes only
|
||||
- * which provides customers with programming information regarding the
|
||||
- * products. This software is supplied "AS IS" without any warranties.
|
||||
- * NXP Semiconductors assumes no responsibility or liability for the
|
||||
- * use of the software, conveys no license or title under any patent,
|
||||
- * copyright, or mask work right to the product. NXP Semiconductors
|
||||
- * reserves the right to make changes in the software without
|
||||
- * notification. NXP Semiconductors also make no representation or
|
||||
- * warranty that such application will be suitable for the specified
|
||||
- * use without further testing or modification.
|
||||
- **********************************************************************/
|
||||
-
|
||||
-#include "lpc_arm922t_cp15_driver.h"
|
||||
-#include "lpc_string.h"
|
||||
-#include "startup.h"
|
||||
-#include "s1l_cmds.h"
|
||||
-#include "s1l_sys_inf.h"
|
||||
-
|
||||
-/* dcache command */
|
||||
-BOOL_32 cmd_dcache(void);
|
||||
-static UNS_32 cmd_dcache_plist[] =
|
||||
-{
|
||||
- (PARSE_TYPE_STR), /* The "dcache" command */
|
||||
- (PARSE_TYPE_DEC | PARSE_TYPE_END)
|
||||
-};
|
||||
-static CMD_ROUTE_T core_dcache_cmd =
|
||||
-{
|
||||
- (UNS_8 *) "dcache",
|
||||
- cmd_dcache,
|
||||
- (UNS_8 *) "Enables, disables, or flushes data cache",
|
||||
- (UNS_8 *) "dcache [0(disable), 1(enable), 2(flush)]",
|
||||
- cmd_dcache_plist,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-/* icache command */
|
||||
-BOOL_32 cmd_icache(void);
|
||||
-static UNS_32 cmd_icache_plist[] =
|
||||
-{
|
||||
- (PARSE_TYPE_STR), /* The "icache" command */
|
||||
- (PARSE_TYPE_DEC | PARSE_TYPE_END)
|
||||
-};
|
||||
-static CMD_ROUTE_T core_icache_cmd =
|
||||
-{
|
||||
- (UNS_8 *) "icache",
|
||||
- cmd_icache,
|
||||
- (UNS_8 *) "Enables or disables instruction cache",
|
||||
- (UNS_8 *) "icache [0(disable), 1(enable)]",
|
||||
- cmd_icache_plist,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-/* inval command */
|
||||
-BOOL_32 cmd_inval(void);
|
||||
-static UNS_32 cmd_inval_plist[] =
|
||||
-{
|
||||
- (PARSE_TYPE_STR | PARSE_TYPE_END) /* The "inval" command */
|
||||
-};
|
||||
-static CMD_ROUTE_T core_inval_cmd =
|
||||
-{
|
||||
- (UNS_8 *) "inval",
|
||||
- cmd_inval,
|
||||
- (UNS_8 *) "Flushes data cache and invalidates instruction cache",
|
||||
- (UNS_8 *) "inval",
|
||||
- cmd_inval_plist,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-/* mmuenab command */
|
||||
-BOOL_32 cmd_mmuenab(void);
|
||||
-static UNS_32 cmd_mmuenab_plist[] =
|
||||
-{
|
||||
- (PARSE_TYPE_STR), /* The "mmuenab" command */
|
||||
- (PARSE_TYPE_DEC | PARSE_TYPE_END)
|
||||
-};
|
||||
-static CMD_ROUTE_T core_mmuenab_cmd =
|
||||
-{
|
||||
- (UNS_8 *) "mmuenab",
|
||||
- cmd_mmuenab,
|
||||
- (UNS_8 *) "Enables or disables the MMU",
|
||||
- (UNS_8 *) "mmuenab [0(disable), 1(enable)]",
|
||||
- cmd_mmuenab_plist,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-/* map command */
|
||||
-BOOL_32 cmd_map(void);
|
||||
-static UNS_32 cmd_map_plist[] =
|
||||
-{
|
||||
- (PARSE_TYPE_STR), /* The "map" command */
|
||||
- (PARSE_TYPE_HEX),
|
||||
- (PARSE_TYPE_HEX),
|
||||
- (PARSE_TYPE_DEC),
|
||||
- (PARSE_TYPE_DEC | PARSE_TYPE_END),
|
||||
-};
|
||||
-static CMD_ROUTE_T core_map_cmd =
|
||||
-{
|
||||
- (UNS_8 *) "map",
|
||||
- cmd_map,
|
||||
- (UNS_8 *) "Maps a range of physical address sections to virtual addresses",
|
||||
- (UNS_8 *) "map [virt hex addr][phy hex addr][sections][0(uncached), 1(cached), 2(unmap)]",
|
||||
- cmd_map_plist,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-/* mmuinfo command */
|
||||
-static BOOL_32 cmd_mmuinfo(void);
|
||||
-static UNS_32 cmd_mmuinfo_plist[] =
|
||||
-{
|
||||
- (PARSE_TYPE_STR | PARSE_TYPE_END) /* The "mmuinfo" command */
|
||||
-};
|
||||
-static CMD_ROUTE_T core_mmuinfo_cmd =
|
||||
-{
|
||||
- (UNS_8 *) "mmuinfo",
|
||||
- cmd_mmuinfo,
|
||||
- (UNS_8 *) "Dumps page table and MMU info",
|
||||
- (UNS_8 *) "mmuinfo",
|
||||
- cmd_mmuinfo_plist,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-/* MMU group */
|
||||
-static GROUP_LIST_T mmu_group =
|
||||
-{
|
||||
- (UNS_8 *) "mmu", /* mmu group */
|
||||
- (UNS_8 *) "MMU command group",
|
||||
- NULL,
|
||||
- NULL
|
||||
-};
|
||||
-
|
||||
-static UNS_8 enabled_msg [] =" enabled";
|
||||
-static UNS_8 disabled_msg [] =" disabled";
|
||||
-static UNS_8 dcache_msg[] = "Data cache";
|
||||
-static UNS_8 icache_msg[] = "Instruction cache";
|
||||
-static UNS_8 pagetab_msg[] = "Page table at address: ";
|
||||
-static UNS_8 slist_msg[] = "Type Virt Phy fl Size";
|
||||
-static UNS_8 mmu_msg [] ="MMU";
|
||||
-static UNS_8 cpage_msg[] = "Coarse page:";
|
||||
-static UNS_8 fpage_msg[] = "Fine page :";
|
||||
-static UNS_8 sect_msg[] = "Section :";
|
||||
-static UNS_8 mbytes_msg[] = "M";
|
||||
-static UNS_8 map1_err_msg[] =
|
||||
- "Error : section addresses must be aligned on a 32-bit boundary";
|
||||
-static UNS_8 map2_err_msg[] =
|
||||
- "Error : Number of sections exceeds address range of device";
|
||||
-static UNS_8 phya_msg[] = "Virtual address ";
|
||||
-static UNS_8 mapped_msg[] = " mapped to physical address ";
|
||||
-static UNS_8 unmapped_msg[] = " unmapped from physical address ";
|
||||
-static UNS_8 cached_msg[] = " (cached)";
|
||||
-static UNS_8 inval_msg[] = " invalidated";
|
||||
-static UNS_8 caches_msg [] ="Caches";
|
||||
-static UNS_8 flushed_msg[] = " flushed";
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: show_section
|
||||
- *
|
||||
- * Purpose: Display section information
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters:
|
||||
- * mmu_reg : MMU settings for this section
|
||||
- * virt_addr : Starting virtual address for this section
|
||||
- * segs : Number of 1M segments for this section
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: Nothing
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-static void show_section(UNS_32 mmu_reg,
|
||||
- UNS_32 virt_addr,
|
||||
- UNS_32 segs)
|
||||
-{
|
||||
- UNS_8 straddr [16];
|
||||
- UNS_32 mmu_phy;
|
||||
-
|
||||
- if ((mmu_reg & ARM922T_L1D_TYPE_PG_SN_MASK) !=
|
||||
- ARM922T_L1D_TYPE_FAULT)
|
||||
- {
|
||||
- if ((mmu_reg & ARM922T_L1D_TYPE_PG_SN_MASK) ==
|
||||
- ARM922T_L1D_TYPE_CPAGE)
|
||||
- {
|
||||
- term_dat_out(cpage_msg);
|
||||
- }
|
||||
- else if ((mmu_reg & ARM922T_L1D_TYPE_PG_SN_MASK) ==
|
||||
- ARM922T_L1D_TYPE_FPAGE)
|
||||
- {
|
||||
- term_dat_out(fpage_msg);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out(sect_msg);
|
||||
- }
|
||||
-
|
||||
- /* Compute virtual address */
|
||||
- str_makehex(straddr, virt_addr, 8);
|
||||
- term_dat_out(straddr);
|
||||
- term_dat_out((UNS_8 *) " ");
|
||||
-
|
||||
- /* Compute mapped physical address */
|
||||
- if ((mmu_reg & ARM922T_L1D_TYPE_PG_SN_MASK) ==
|
||||
- ARM922T_L1D_TYPE_SECTION)
|
||||
- {
|
||||
- mmu_phy = mmu_reg & 0xFFF00000;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- /* Don't compute addresses for non-sections */
|
||||
- mmu_phy = 0;
|
||||
- }
|
||||
- str_makehex(straddr, mmu_phy, 8);
|
||||
- term_dat_out(straddr);
|
||||
- term_dat_out((UNS_8 *) " ");
|
||||
-
|
||||
- /* MMU flags */
|
||||
- if ((mmu_reg & ARM922T_L1D_BUFFERABLE) != 0)
|
||||
- {
|
||||
- term_dat_out((UNS_8 *) "b");
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out((UNS_8 *) " ");
|
||||
- }
|
||||
- if ((mmu_reg & ARM922T_L1D_CACHEABLE) != 0)
|
||||
- {
|
||||
- term_dat_out((UNS_8 *) "c");
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out((UNS_8 *) " ");
|
||||
- }
|
||||
- term_dat_out((UNS_8 *) " ");
|
||||
-
|
||||
- /* Displays used megabytes */
|
||||
- str_makedec(straddr, segs);
|
||||
- term_dat_out(straddr);
|
||||
- term_dat_out_crlf(mbytes_msg);
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: mmu_dumpinfo
|
||||
- *
|
||||
- * Purpose: Display MMU info
|
||||
- *
|
||||
- * Processing:
|
||||
- * Display the MMU information, including enable status, cache
|
||||
- * status, and page table.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-static BOOL_32 mmu_dumpinfo(void)
|
||||
-{
|
||||
- UNS_32 segsz, last_mmu_reg, mmu_vrt, mmu_reg, mmu_vrtsav = 0, *pt;
|
||||
- UNS_32 mlast_mmu_reg, mmmu_reg;
|
||||
- int idx;
|
||||
- UNS_8 hexaddr [16];
|
||||
-
|
||||
- term_dat_out(mmu_msg);
|
||||
- if (cp15_mmu_enabled() == FALSE)
|
||||
- {
|
||||
- term_dat_out_crlf(disabled_msg);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out_crlf(enabled_msg);
|
||||
-
|
||||
- /* Get MMU control register word */
|
||||
- mmu_reg = cp15_get_mmu_control_reg();
|
||||
-
|
||||
- /* Instruction cache status */
|
||||
- term_dat_out(icache_msg);
|
||||
- if ((mmu_reg & ARM922T_MMU_CONTROL_I) == 0)
|
||||
- {
|
||||
- term_dat_out_crlf(disabled_msg);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out_crlf(enabled_msg);
|
||||
- }
|
||||
-
|
||||
- /* Data cache status */
|
||||
- term_dat_out(dcache_msg);
|
||||
- if ((mmu_reg & ARM922T_MMU_CONTROL_C) == 0)
|
||||
- {
|
||||
- term_dat_out_crlf(disabled_msg);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out_crlf(enabled_msg);
|
||||
- }
|
||||
-
|
||||
- term_dat_out(pagetab_msg);
|
||||
- mmu_reg = (UNS_32) cp15_get_ttb();
|
||||
- str_makehex(hexaddr, mmu_reg, 8);
|
||||
- term_dat_out_crlf(hexaddr);
|
||||
- term_dat_out_crlf(slist_msg);
|
||||
-
|
||||
- /* Process MMU table - assume that the physical and
|
||||
- virtual locations of table are the same */
|
||||
- pt = (UNS_32 *) mmu_reg;
|
||||
- mmu_vrt = 0x0;
|
||||
- segsz = 0xFFFFFFFF;
|
||||
- last_mmu_reg = mlast_mmu_reg = 0xFFFFFFFF;
|
||||
- for (idx = 0; idx < 4096; idx++)
|
||||
- {
|
||||
- mmu_reg = *pt;
|
||||
- mmmu_reg = (mmu_reg & (ARM922T_L1D_TYPE_PG_SN_MASK |
|
||||
- ARM922T_L1D_BUFFERABLE | ARM922T_L1D_CACHEABLE));
|
||||
- segsz = segsz + 1;
|
||||
-
|
||||
- if ((last_mmu_reg != 0xFFFFFFFF) &&
|
||||
- (mlast_mmu_reg != mmmu_reg))
|
||||
- {
|
||||
- show_section(last_mmu_reg, mmu_vrtsav, segsz);
|
||||
- segsz = 0;
|
||||
- }
|
||||
-
|
||||
- if (mlast_mmu_reg != mmmu_reg)
|
||||
- {
|
||||
- mmu_vrtsav = mmu_vrt;
|
||||
- last_mmu_reg = mmu_reg;
|
||||
- mlast_mmu_reg = mmmu_reg;
|
||||
- }
|
||||
-
|
||||
- pt++;
|
||||
- mmu_vrt += 0x00100000;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: mmu_dumpmap
|
||||
- *
|
||||
- * Purpose: Map a virtual address range to a physical range
|
||||
- *
|
||||
- * Processing:
|
||||
- * From the input addresses and number of sections, generate the
|
||||
- * appropriate entries in the page table.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-static BOOL_32 mmu_dumpmap(UNS_32 vrt,
|
||||
- UNS_32 phy,
|
||||
- UNS_32 sections,
|
||||
- UNS_32 cache)
|
||||
-{
|
||||
- BOOL_32 processed = FALSE;
|
||||
- UNS_32 mmu_phy, mmu_vrt, tmp1 = 0, tmp2, *pt;
|
||||
- UNS_8 hexaddr [16];
|
||||
-
|
||||
- /* Verify address boundaries are sectional */
|
||||
- mmu_vrt = vrt & ~ARM922T_L2D_SN_BASE_MASK;
|
||||
- mmu_phy = phy & ~ARM922T_L2D_SN_BASE_MASK;
|
||||
- if ((mmu_vrt != 0) || (mmu_phy != 0))
|
||||
- {
|
||||
- term_dat_out_crlf(map1_err_msg);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- /* Verify that address range and section count will not
|
||||
- exceed address range of device */
|
||||
- tmp1 = vrt >> 20;
|
||||
- tmp1 = (tmp1 + sections) - 1;
|
||||
- tmp2 = phy >> 20;
|
||||
- tmp2 = (tmp2 + sections) - 1;
|
||||
- if ((tmp1 < 4096) && (tmp2 < 4096))
|
||||
- {
|
||||
- /* Good address range and good section count */
|
||||
- processed = TRUE;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out_crlf(map2_err_msg);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- /* Generate static part of MMU word */
|
||||
- if (cache == 0)
|
||||
- {
|
||||
- /* Section mapped with cache disabled */
|
||||
- tmp1 = ARM922T_L1D_TYPE_SECTION;
|
||||
- }
|
||||
- else if (cache == 1)
|
||||
- {
|
||||
- /* Section mapped with cache enabled */
|
||||
- tmp1 = (ARM922T_L1D_BUFFERABLE | ARM922T_L1D_CACHEABLE |
|
||||
- ARM922T_L1D_TYPE_SECTION);
|
||||
- }
|
||||
- else if (cache == 2)
|
||||
- {
|
||||
- /* Section unmapped */
|
||||
- tmp1 = ARM922T_L1D_TYPE_FAULT;
|
||||
- }
|
||||
- tmp1 |= ARM922T_L1D_AP_ALL;
|
||||
-
|
||||
- /* Offset into page table for virtual address */
|
||||
- tmp2 = (vrt >> 20);
|
||||
- pt = cp15_get_ttb() + tmp2;
|
||||
-
|
||||
- /* Loop until all sections are complete */
|
||||
- while ((sections > 0) && (processed == TRUE))
|
||||
- {
|
||||
- /* Add in physical address */
|
||||
- tmp2 = tmp1 | (phy & ARM922T_L2D_SN_BASE_MASK);
|
||||
-
|
||||
- /* Save new section descriptor for virtual address */
|
||||
- *pt = tmp2;
|
||||
-
|
||||
- /* Output message shown the map */
|
||||
- term_dat_out(phya_msg);
|
||||
- str_makehex(hexaddr, phy, 8);
|
||||
- term_dat_out(hexaddr);
|
||||
- if (cache == 2)
|
||||
- {
|
||||
- term_dat_out(unmapped_msg);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- term_dat_out(mapped_msg);
|
||||
- }
|
||||
- str_makehex(hexaddr, vrt, 8);
|
||||
- term_dat_out(hexaddr);
|
||||
- if (cache == 1)
|
||||
- {
|
||||
- term_dat_out(cached_msg);
|
||||
- }
|
||||
- term_dat_out_crlf((UNS_8 *) "");
|
||||
-
|
||||
- /* Next section and page table entry*/
|
||||
- phy += 0x00100000;
|
||||
- vrt += 0x00100000;
|
||||
- pt++;
|
||||
- sections--;
|
||||
- }
|
||||
-
|
||||
- return processed;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: cmd_mmuinfo
|
||||
- *
|
||||
- * Purpose: Display MMU information
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-static BOOL_32 cmd_mmuinfo(void)
|
||||
-{
|
||||
- mmu_dumpinfo();
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: cmd_map
|
||||
- *
|
||||
- * Purpose: Map a physical address region to a virtual region
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-BOOL_32 cmd_map(void)
|
||||
-{
|
||||
- UNS_32 phy, virt, sects, ce = 0;
|
||||
-
|
||||
- /* Get arguments */
|
||||
- virt = cmd_get_field_val(1);
|
||||
- phy = cmd_get_field_val(2);
|
||||
- sects = cmd_get_field_val(3);
|
||||
- ce = cmd_get_field_val(4);
|
||||
-
|
||||
- if (ce <= 2)
|
||||
- {
|
||||
- mmu_dumpmap(virt, phy, sects, ce);
|
||||
- }
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: cmd_inval
|
||||
- *
|
||||
- * Purpose: MMU cache flush and invalidate
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-BOOL_32 cmd_inval(void)
|
||||
-{
|
||||
- dcache_flush();
|
||||
- icache_inval();
|
||||
- term_dat_out(caches_msg);
|
||||
- term_dat_out(inval_msg);
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: cmd_dcache
|
||||
- *
|
||||
- * Purpose: MMU data cache enable and disable
|
||||
- *
|
||||
- * Processing:
|
||||
- * If the value passed in the parser is 1, enable the data cache,
|
||||
- * otherwise disable the data cache.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-BOOL_32 cmd_dcache(void)
|
||||
-{
|
||||
- UNS_32 cenable;
|
||||
- UNS_8 *ppar;
|
||||
-
|
||||
- /* Get argument */
|
||||
- cenable = cmd_get_field_val(1);
|
||||
-
|
||||
- switch (cenable)
|
||||
- {
|
||||
- case 0:
|
||||
- dcache_flush();
|
||||
- cp15_set_dcache(0);
|
||||
- ppar = disabled_msg;
|
||||
- break;
|
||||
-
|
||||
- case 1:
|
||||
- cp15_invalidate_cache();
|
||||
- cp15_set_dcache(1);
|
||||
- ppar = enabled_msg;
|
||||
- break;
|
||||
-
|
||||
- case 2:
|
||||
- default:
|
||||
- dcache_flush();
|
||||
- ppar = flushed_msg;
|
||||
- break;
|
||||
- }
|
||||
-
|
||||
- term_dat_out(dcache_msg);
|
||||
- term_dat_out_crlf(ppar);
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: cmd_icache
|
||||
- *
|
||||
- * Purpose: MMU instruction cache enable and disable
|
||||
- *
|
||||
- * Processing:
|
||||
- * If the value passed in the parser is 1, enable the instruction
|
||||
- * cache, otherwise disable the instruction cache.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-BOOL_32 cmd_icache(void)
|
||||
-{
|
||||
- UNS_32 cenable;
|
||||
- UNS_8 *ppar;
|
||||
-
|
||||
- /* Get argument */
|
||||
- cenable = cmd_get_field_val(1);
|
||||
-
|
||||
- if (cenable == 1)
|
||||
- {
|
||||
- dcache_flush();
|
||||
- cp15_invalidate_cache();
|
||||
- cp15_set_icache(1);
|
||||
- ppar = enabled_msg;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- cp15_set_icache(0);
|
||||
- ppar = disabled_msg;
|
||||
- }
|
||||
-
|
||||
- term_dat_out(icache_msg);
|
||||
- term_dat_out_crlf(ppar);
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: cmd_mmuenab
|
||||
- *
|
||||
- * Purpose: Enable or disable MMU
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: TRUE if the command was processed, otherwise FALSE
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-BOOL_32 cmd_mmuenab(void)
|
||||
-{
|
||||
- UNS_8 *ppar;
|
||||
- UNS_32 cenable;
|
||||
-
|
||||
- term_dat_out_crlf((UNS_8 *) "Warning: Changing MMU status on "
|
||||
- " cached and buffered code can cause system crashes.");
|
||||
-
|
||||
- /* Get argument */
|
||||
- cenable = cmd_get_field_val(1);
|
||||
-
|
||||
- if (cenable == 1)
|
||||
- {
|
||||
- if ((cp15_get_mmu_control_reg() & ARM922T_MMU_CONTROL_C) != 0)
|
||||
- {
|
||||
- cp15_invalidate_cache();
|
||||
- }
|
||||
-
|
||||
- cp15_set_mmu(1);
|
||||
- ppar = enabled_msg;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- cp15_dcache_flush();
|
||||
- cp15_write_buffer_flush();
|
||||
- cp15_invalidate_cache();
|
||||
- cp15_set_mmu(0);
|
||||
- ppar = disabled_msg;
|
||||
- }
|
||||
-
|
||||
- term_dat_out(mmu_msg);
|
||||
- term_dat_out_crlf(ppar);
|
||||
-
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
-/***********************************************************************
|
||||
- *
|
||||
- * Function: mmu_cmd_group_init
|
||||
- *
|
||||
- * Purpose: Initialize MMU command group
|
||||
- *
|
||||
- * Processing:
|
||||
- * See function.
|
||||
- *
|
||||
- * Parameters: None
|
||||
- *
|
||||
- * Outputs: None
|
||||
- *
|
||||
- * Returns: Nothin
|
||||
- *
|
||||
- * Notes: None
|
||||
- *
|
||||
- **********************************************************************/
|
||||
-void mmu_cmd_group_init(void)
|
||||
-{
|
||||
- /* Add MMU group */
|
||||
- cmd_add_group(&mmu_group);
|
||||
-
|
||||
- /* Add commands to the MMU group */
|
||||
- cmd_add_new_command(&mmu_group, &core_dcache_cmd);
|
||||
- cmd_add_new_command(&mmu_group, &core_icache_cmd);
|
||||
- cmd_add_new_command(&mmu_group, &core_inval_cmd);
|
||||
- cmd_add_new_command(&mmu_group, &core_mmuenab_cmd);
|
||||
- cmd_add_new_command(&mmu_group, &core_map_cmd);
|
||||
- cmd_add_new_command(&mmu_group, &core_mmuinfo_cmd);
|
||||
-}
|
||||
@@ -0,0 +1,188 @@
|
||||
Fix compilation and eabi issues
|
||||
|
||||
Since we are not linking with libc anymore, we need to define our own memset,
|
||||
strlen and memcpy. Also, as we are using a *libc compiler, we need to "handle"
|
||||
exceptions (mostly division by 0) by defining raise() and
|
||||
__aeabi_unwind_cpp_pr0.
|
||||
|
||||
Signed-off-by: Alexandre Belloni <abelloni@adeneo-embedded.com>
|
||||
---
|
||||
csps/lpc32xx/bsps/ea3250/source/libnosys_gnu.c | 41 +++++++++++++++++++++++
|
||||
csps/lpc32xx/bsps/fdi3250/source/libnosys_gnu.c | 41 +++++++++++++++++++++++
|
||||
csps/lpc32xx/bsps/phy3250/source/libnosys_gnu.c | 41 +++++++++++++++++++++++
|
||||
3 files changed, 123 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/ea3250/source/libnosys_gnu.c b/csps/lpc32xx/bsps/ea3250/source/libnosys_gnu.c
|
||||
index 385b0ab..f1f0a0a 100644
|
||||
--- a/csps/lpc32xx/bsps/ea3250/source/libnosys_gnu.c
|
||||
+++ b/csps/lpc32xx/bsps/ea3250/source/libnosys_gnu.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
/* errno definition */
|
||||
#undef errno
|
||||
@@ -125,4 +126,44 @@ int _write(int file, char *ptr, int len){
|
||||
return 0;
|
||||
}
|
||||
|
||||
+void * memset(void * s,int c,size_t count)
|
||||
+{
|
||||
+ char *xs = (char *) s;
|
||||
+
|
||||
+ while (count--)
|
||||
+ *xs++ = c;
|
||||
+
|
||||
+ return s;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+size_t strlen(const char * s)
|
||||
+{
|
||||
+ const char *sc;
|
||||
+
|
||||
+ for (sc = s; *sc != '\0'; ++sc)
|
||||
+ /* nothing */;
|
||||
+ return sc - s;
|
||||
+}
|
||||
+
|
||||
+void * memcpy(void * dest,const void *src,size_t count)
|
||||
+{
|
||||
+ char *tmp = (char *) dest, *s = (char *) src;
|
||||
+
|
||||
+ while (count--)
|
||||
+ *tmp++ = *s++;
|
||||
+
|
||||
+ return dest;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+/* Dummy functions to avoid linker complaints */
|
||||
+void __aeabi_unwind_cpp_pr0(void)
|
||||
+{
|
||||
+};
|
||||
+
|
||||
+void raise(void)
|
||||
+{
|
||||
+};
|
||||
+
|
||||
#endif /*__GNUC__*/
|
||||
diff --git a/csps/lpc32xx/bsps/fdi3250/source/libnosys_gnu.c b/csps/lpc32xx/bsps/fdi3250/source/libnosys_gnu.c
|
||||
index 385b0ab..f1f0a0a 100644
|
||||
--- a/csps/lpc32xx/bsps/fdi3250/source/libnosys_gnu.c
|
||||
+++ b/csps/lpc32xx/bsps/fdi3250/source/libnosys_gnu.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
/* errno definition */
|
||||
#undef errno
|
||||
@@ -125,4 +126,44 @@ int _write(int file, char *ptr, int len){
|
||||
return 0;
|
||||
}
|
||||
|
||||
+void * memset(void * s,int c,size_t count)
|
||||
+{
|
||||
+ char *xs = (char *) s;
|
||||
+
|
||||
+ while (count--)
|
||||
+ *xs++ = c;
|
||||
+
|
||||
+ return s;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+size_t strlen(const char * s)
|
||||
+{
|
||||
+ const char *sc;
|
||||
+
|
||||
+ for (sc = s; *sc != '\0'; ++sc)
|
||||
+ /* nothing */;
|
||||
+ return sc - s;
|
||||
+}
|
||||
+
|
||||
+void * memcpy(void * dest,const void *src,size_t count)
|
||||
+{
|
||||
+ char *tmp = (char *) dest, *s = (char *) src;
|
||||
+
|
||||
+ while (count--)
|
||||
+ *tmp++ = *s++;
|
||||
+
|
||||
+ return dest;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+/* Dummy functions to avoid linker complaints */
|
||||
+void __aeabi_unwind_cpp_pr0(void)
|
||||
+{
|
||||
+};
|
||||
+
|
||||
+void raise(void)
|
||||
+{
|
||||
+};
|
||||
+
|
||||
#endif /*__GNUC__*/
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/source/libnosys_gnu.c b/csps/lpc32xx/bsps/phy3250/source/libnosys_gnu.c
|
||||
index cfdb674..6b50c60 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/source/libnosys_gnu.c
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/source/libnosys_gnu.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
/* errno definition */
|
||||
#undef errno
|
||||
@@ -125,4 +126,44 @@ int _write(int file, char *ptr, int len){
|
||||
return 0;
|
||||
}
|
||||
|
||||
+void * memset(void * s,int c,size_t count)
|
||||
+{
|
||||
+ char *xs = (char *) s;
|
||||
+
|
||||
+ while (count--)
|
||||
+ *xs++ = c;
|
||||
+
|
||||
+ return s;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+size_t strlen(const char * s)
|
||||
+{
|
||||
+ const char *sc;
|
||||
+
|
||||
+ for (sc = s; *sc != '\0'; ++sc)
|
||||
+ /* nothing */;
|
||||
+ return sc - s;
|
||||
+}
|
||||
+
|
||||
+void * memcpy(void * dest,const void *src,size_t count)
|
||||
+{
|
||||
+ char *tmp = (char *) dest, *s = (char *) src;
|
||||
+
|
||||
+ while (count--)
|
||||
+ *tmp++ = *s++;
|
||||
+
|
||||
+ return dest;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+/* Dummy functions to avoid linker complaints */
|
||||
+void __aeabi_unwind_cpp_pr0(void)
|
||||
+{
|
||||
+};
|
||||
+
|
||||
+void raise(void)
|
||||
+{
|
||||
+};
|
||||
+
|
||||
#endif /*__GNUC__*/
|
||||
--
|
||||
1.7.7.3
|
||||
|
||||
@@ -0,0 +1,521 @@
|
||||
Use slashes instead of backslashes
|
||||
|
||||
Signed-off-by: Alexandre Belloni <abelloni@adeneo-embedded.com>
|
||||
---
|
||||
.../bsps/common/examples/buildfiles/makefile | 10 +++---
|
||||
.../startup/examples/burners/makefile.burner | 16 +++++-----
|
||||
csps/lpc32xx/bsps/ea3250/source/makefile | 10 +++---
|
||||
csps/lpc32xx/bsps/fdi3250/source/makefile | 12 ++++----
|
||||
csps/lpc32xx/bsps/phy3250/examples/makefile | 2 +-
|
||||
csps/lpc32xx/bsps/phy3250/source/makefile | 2 +-
|
||||
.../examples/Burners/nor/kickstart/makefile | 2 +-
|
||||
.../startup/examples/Burners/nor/norerase/makefile | 2 +-
|
||||
.../startup/examples/Burners/nor/s1lapp/makefile | 2 +-
|
||||
.../examples/Burners/spi/kickstart/makefile | 2 +-
|
||||
csps/lpc32xx/source/makefile | 10 +++---
|
||||
lpc/source/makefile | 10 +++---
|
||||
makefile | 2 +-
|
||||
makerule/common/make.rules.environment | 30 ++++++++++----------
|
||||
makerule/lpc32xx/make.lpc32xx.gnu | 2 +-
|
||||
makerule/lpc32xx/make.lpc32xx.iar | 12 ++++----
|
||||
makerule/lpc32xx/make.lpc32xx.keil | 6 ++--
|
||||
makerule/lpc32xx/make.lpc32xx.rvw | 2 +-
|
||||
18 files changed, 67 insertions(+), 67 deletions(-)
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/common/examples/buildfiles/makefile b/csps/lpc32xx/bsps/common/examples/buildfiles/makefile
|
||||
index cf4977c..1da2201 100644
|
||||
--- a/csps/lpc32xx/bsps/common/examples/buildfiles/makefile
|
||||
+++ b/csps/lpc32xx/bsps/common/examples/buildfiles/makefile
|
||||
@@ -25,16 +25,16 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
########################################################################
|
||||
#
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
-AFLAGS +=-I..\Include
|
||||
-CFLAGS +=-I..\Include
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
+AFLAGS +=-I../Include
|
||||
+CFLAGS +=-I../Include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -42,6 +42,6 @@ CFLAGS +=-I..\Include
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.build
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.build
|
||||
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/common/startup/examples/burners/makefile.burner b/csps/lpc32xx/bsps/common/startup/examples/burners/makefile.burner
|
||||
index fca3947..18bd703 100644
|
||||
--- a/csps/lpc32xx/bsps/common/startup/examples/burners/makefile.burner
|
||||
+++ b/csps/lpc32xx/bsps/common/startup/examples/burners/makefile.burner
|
||||
@@ -22,9 +22,9 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-COMMON_BASE := $(NXPMCU_SOFTWARE)\csps\$(CSP)\bsps\common
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
-include $(COMMON_BASE)\startup\examples\buildfiles\make.env
|
||||
+COMMON_BASE := $(NXPMCU_SOFTWARE)/csps/$(CSP)/bsps/common
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
+include $(COMMON_BASE)/startup/examples/buildfiles/make.env
|
||||
|
||||
########################################################################
|
||||
# ARM Realview
|
||||
@@ -38,7 +38,7 @@ AFLAGS += --predefine "USE_ALL_STACKS SETL {TRUE}"
|
||||
#AFLAGS += --predefine "RW_RELOC SETL {TRUE}"
|
||||
|
||||
# This runs from IRAM
|
||||
-LDSCRIPT =$(COMMON_BASE)\startup\examples\buildfiles\ldscript_iram_rvw.ld
|
||||
+LDSCRIPT =$(COMMON_BASE)/startup/examples/buildfiles/ldscript_iram_rvw.ld
|
||||
LDFLAGS = --remove
|
||||
MAP = --map --info=totals,sizes,unused --symbols --list
|
||||
endif
|
||||
@@ -55,7 +55,7 @@ AFLAGS += --predefine "USE_ALL_STACKS SETL {TRUE}"
|
||||
#AFLAGS += --predefine "RW_RELOC SETL {TRUE}"
|
||||
|
||||
# This runs from IRAM
|
||||
-LDSCRIPT =$(COMMON_BASE)\startup\examples\buildfiles\ldscript_iram_rvw.ld
|
||||
+LDSCRIPT =$(COMMON_BASE)/startup/examples/buildfiles/ldscript_iram_rvw.ld
|
||||
LDFLAGS = --remove
|
||||
MAP = --map --info=totals,sizes,unused --symbols --list
|
||||
endif
|
||||
@@ -72,7 +72,7 @@ AFLAGS += --defsym USE_ALL_STACKS=1
|
||||
#AFLAGS += --defsym RW_RELOC=1
|
||||
|
||||
# This runs from IRAM
|
||||
-LDSCRIPT =$(COMMON_BASE)\startup\examples\buildfiles\ldscript_iram_gnu.ld
|
||||
+LDSCRIPT =$(COMMON_BASE)/startup/examples/buildfiles/ldscript_iram_gnu.ld
|
||||
|
||||
endif
|
||||
|
||||
@@ -108,7 +108,7 @@ endif
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -157,6 +157,6 @@ endif
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.build
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.build
|
||||
|
||||
.PHONY: debug bin
|
||||
diff --git a/csps/lpc32xx/bsps/ea3250/source/makefile b/csps/lpc32xx/bsps/ea3250/source/makefile
|
||||
index 7cada25..2899b20 100644
|
||||
--- a/csps/lpc32xx/bsps/ea3250/source/makefile
|
||||
+++ b/csps/lpc32xx/bsps/ea3250/source/makefile
|
||||
@@ -22,16 +22,16 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
########################################################################
|
||||
#
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
-AFLAGS +=-I..\Include
|
||||
-CFLAGS +=-I..\Include
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
+AFLAGS +=-I../Include
|
||||
+CFLAGS +=-I../Include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -64,7 +64,7 @@ realclean: lib_realclean
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.build
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.build
|
||||
|
||||
.PHONY: all lib_clean lib_realclean
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/fdi3250/source/makefile b/csps/lpc32xx/bsps/fdi3250/source/makefile
|
||||
index 4e153bb..11e4b63 100644
|
||||
--- a/csps/lpc32xx/bsps/fdi3250/source/makefile
|
||||
+++ b/csps/lpc32xx/bsps/fdi3250/source/makefile
|
||||
@@ -22,16 +22,16 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
########################################################################
|
||||
#
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
-AFLAGS +=-I..\Include
|
||||
-CFLAGS +=-I..\Include
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
+AFLAGS +=-I../Include
|
||||
+CFLAGS +=-I../Include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -53,7 +53,7 @@ lib_clean:
|
||||
# delete all targets this Makefile can make and all built libraries
|
||||
# linked in
|
||||
lib_realclean:
|
||||
- -@$(RM) $(BSP_LIB_DIR)\*.a
|
||||
+ -@$(RM) $(BSP_LIB_DIR)/*.a
|
||||
-@$(RMDIR) $(BSP_LIB_DIR)
|
||||
|
||||
clean: lib_clean
|
||||
@@ -65,7 +65,7 @@ realclean: lib_realclean
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.build
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.build
|
||||
|
||||
.PHONY: all lib_clean lib_realclean
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/examples/makefile b/csps/lpc32xx/bsps/phy3250/examples/makefile
|
||||
index b939252..e7feaa6 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/examples/makefile
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/examples/makefile
|
||||
@@ -25,7 +25,7 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
SUBDIRS = adc dram_self_refresh hstimer hsuart i2c kscan lcd_colorbars
|
||||
SUBDIRS += lcd_tsc mi2c mstimer pwm pwm_simple rtc sdcard sdcard_dma
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/source/makefile b/csps/lpc32xx/bsps/phy3250/source/makefile
|
||||
index 7c48e7d..750b776 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/source/makefile
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/source/makefile
|
||||
@@ -32,7 +32,7 @@ include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
AFLAGS +=-I../Include
|
||||
CFLAGS +=-I../Include
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/kickstart/makefile b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/kickstart/makefile
|
||||
index 01e2b38..526d6cc 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/kickstart/makefile
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/kickstart/makefile
|
||||
@@ -78,7 +78,7 @@ endif
|
||||
|
||||
########################################################################
|
||||
#
|
||||
-# Compiler\linker specific stuff
|
||||
+# Compiler/linker specific stuff
|
||||
#
|
||||
########################################################################
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/norerase/makefile b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/norerase/makefile
|
||||
index ce329f5..e81b8db 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/norerase/makefile
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/norerase/makefile
|
||||
@@ -77,7 +77,7 @@ endif
|
||||
|
||||
########################################################################
|
||||
#
|
||||
-# Compiler\linker specific stuff
|
||||
+# Compiler/linker specific stuff
|
||||
#
|
||||
########################################################################
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/s1lapp/makefile b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/s1lapp/makefile
|
||||
index 4426fc7..196faec 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/s1lapp/makefile
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/nor/s1lapp/makefile
|
||||
@@ -77,7 +77,7 @@ endif
|
||||
|
||||
########################################################################
|
||||
#
|
||||
-# Compiler\linker specific stuff
|
||||
+# Compiler/linker specific stuff
|
||||
#
|
||||
########################################################################
|
||||
|
||||
diff --git a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/spi/kickstart/makefile b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/spi/kickstart/makefile
|
||||
index dc73b64..39fc304 100644
|
||||
--- a/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/spi/kickstart/makefile
|
||||
+++ b/csps/lpc32xx/bsps/phy3250/startup/examples/Burners/spi/kickstart/makefile
|
||||
@@ -78,7 +78,7 @@ endif
|
||||
|
||||
########################################################################
|
||||
#
|
||||
-# Compiler\linker specific stuff
|
||||
+# Compiler/linker specific stuff
|
||||
#
|
||||
########################################################################
|
||||
|
||||
diff --git a/csps/lpc32xx/source/makefile b/csps/lpc32xx/source/makefile
|
||||
index 8e05456..16bd944 100644
|
||||
--- a/csps/lpc32xx/source/makefile
|
||||
+++ b/csps/lpc32xx/source/makefile
|
||||
@@ -25,16 +25,16 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
########################################################################
|
||||
#
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
-AFLAGS +=-I..\Include
|
||||
-CFLAGS +=-I..\Include
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
+AFLAGS +=-I../Include
|
||||
+CFLAGS +=-I../Include
|
||||
|
||||
|
||||
########################################################################
|
||||
@@ -68,7 +68,7 @@ realclean: lib_realclean
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.build
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.build
|
||||
|
||||
.PHONY: all lib_clean lib_realclean
|
||||
|
||||
diff --git a/lpc/source/makefile b/lpc/source/makefile
|
||||
index 2860db9..ae7d612 100644
|
||||
--- a/lpc/source/makefile
|
||||
+++ b/lpc/source/makefile
|
||||
@@ -25,16 +25,16 @@
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
########################################################################
|
||||
#
|
||||
# Pick up the assembler and C source files in the directory
|
||||
#
|
||||
########################################################################
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.ftypes
|
||||
-AFLAGS +=-I..\Include
|
||||
-CFLAGS +=-I..\Include
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.ftypes
|
||||
+AFLAGS +=-I../Include
|
||||
+CFLAGS +=-I../Include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -67,7 +67,7 @@ realclean: lib_realclean
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.build
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.build
|
||||
|
||||
.PHONY: all lib_clean lib_realclean
|
||||
|
||||
diff --git a/makefile b/makefile
|
||||
index 8645fcc..86fa6bc 100644
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -34,7 +34,7 @@ TARGETS_CLN =gen_clean csp_clean bsp_clean
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\$(CSP)\make.$(CSP).$(TOOL)
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)
|
||||
|
||||
########################################################################
|
||||
#
|
||||
diff --git a/makerule/common/make.rules.environment b/makerule/common/make.rules.environment
|
||||
index d5737fe..4e6df48 100644
|
||||
--- a/makerule/common/make.rules.environment
|
||||
+++ b/makerule/common/make.rules.environment
|
||||
@@ -52,7 +52,7 @@ ASTYLE =astyle --options=$(BUILD_ROOT)/tools/astyle.cfg
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-CSP_LIB_DIR =$(BUILD_ROOT)\csps\$(CSP)\lib
|
||||
+CSP_LIB_DIR =$(BUILD_ROOT)/csps/$(CSP)/lib
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -60,7 +60,7 @@ CSP_LIB_DIR =$(BUILD_ROOT)\csps\$(CSP)\lib
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-BSP_LIB_DIR =$(BUILD_ROOT)\csps\$(CSP)\bsps\$(BSP)\lib
|
||||
+BSP_LIB_DIR =$(BUILD_ROOT)/csps/$(CSP)/bsps/$(BSP)/lib
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -68,7 +68,7 @@ BSP_LIB_DIR =$(BUILD_ROOT)\csps\$(CSP)\bsps\$(BSP)\lib
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-GEN_LIB_DIR =$(BUILD_ROOT)\$(GEN)\lib
|
||||
+GEN_LIB_DIR =$(BUILD_ROOT)/$(GEN)/lib
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -76,9 +76,9 @@ GEN_LIB_DIR =$(BUILD_ROOT)\$(GEN)\lib
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-CSP_DIR =$(BUILD_ROOT)\csps\$(CSP)
|
||||
-CSP_SRC_DIR =$(CSP_DIR)\source
|
||||
-CSP_INC_DIR =$(CSP_DIR)\include
|
||||
+CSP_DIR =$(BUILD_ROOT)/csps/$(CSP)
|
||||
+CSP_SRC_DIR =$(CSP_DIR)/source
|
||||
+CSP_INC_DIR =$(CSP_DIR)/include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -86,9 +86,9 @@ CSP_INC_DIR =$(CSP_DIR)\include
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-BSP_DIR =$(BUILD_ROOT)\csps\$(CSP)\bsps\$(BSP)
|
||||
-BSP_SRC_DIR =$(BSP_DIR)\source
|
||||
-BSP_INC_DIR =$(BSP_DIR)\include
|
||||
+BSP_DIR =$(BUILD_ROOT)/csps/$(CSP)/bsps/$(BSP)
|
||||
+BSP_SRC_DIR =$(BSP_DIR)/source
|
||||
+BSP_INC_DIR =$(BSP_DIR)/include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -96,9 +96,9 @@ BSP_INC_DIR =$(BSP_DIR)\include
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-GEN_DIR =$(BUILD_ROOT)\$(GEN)
|
||||
-GEN_SRC_DIR =$(GEN_DIR)\source
|
||||
-GEN_INC_DIR =$(GEN_DIR)\include
|
||||
+GEN_DIR =$(BUILD_ROOT)/$(GEN)
|
||||
+GEN_SRC_DIR =$(GEN_DIR)/source
|
||||
+GEN_INC_DIR =$(GEN_DIR)/include
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@@ -151,6 +151,6 @@ endif
|
||||
#
|
||||
########################################################################
|
||||
|
||||
-TARGET_CSP_LIB =$(CSP_LIB_DIR)\$(CSP_ARCHIVE)
|
||||
-TARGET_BSP_LIB =$(BSP_LIB_DIR)\$(BSP_ARCHIVE)
|
||||
-TARGET_GEN_LIB =$(GEN_LIB_DIR)\$(GEN_ARCHIVE)
|
||||
+TARGET_CSP_LIB =$(CSP_LIB_DIR)/$(CSP_ARCHIVE)
|
||||
+TARGET_BSP_LIB =$(BSP_LIB_DIR)/$(BSP_ARCHIVE)
|
||||
+TARGET_GEN_LIB =$(GEN_LIB_DIR)/$(GEN_ARCHIVE)
|
||||
diff --git a/makerule/lpc32xx/make.lpc32xx.gnu b/makerule/lpc32xx/make.lpc32xx.gnu
|
||||
index 3277d99..d80b98d 100644
|
||||
--- a/makerule/lpc32xx/make.lpc32xx.gnu
|
||||
+++ b/makerule/lpc32xx/make.lpc32xx.gnu
|
||||
@@ -19,7 +19,7 @@
|
||||
# use without further testing or modification.
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.environment
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.environment
|
||||
|
||||
CPU = arm926ej-s
|
||||
CFLAGS = -mcpu=arm926ej-s -Wall -Os
|
||||
diff --git a/makerule/lpc32xx/make.lpc32xx.iar b/makerule/lpc32xx/make.lpc32xx.iar
|
||||
index 238ebbf..27d163f 100644
|
||||
--- a/makerule/lpc32xx/make.lpc32xx.iar
|
||||
+++ b/makerule/lpc32xx/make.lpc32xx.iar
|
||||
@@ -19,12 +19,12 @@
|
||||
# use without further testing or modification.
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.environment
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.environment
|
||||
|
||||
-IARBASE = $(IAR_ROOT)\ARM
|
||||
-IARTOOLS = $(IARBASE)\bin
|
||||
-IAR_LIB = $(IARBASE)\lib
|
||||
-IAR_INC = $(IARBASE)\inc
|
||||
+IARBASE = $(IAR_ROOT)/ARM
|
||||
+IARTOOLS = $(IARBASE)/bin
|
||||
+IAR_LIB = $(IARBASE)/lib
|
||||
+IAR_INC = $(IARBASE)/inc
|
||||
CC = iccarm
|
||||
CCP = iccarm
|
||||
AS = iasmarm
|
||||
@@ -36,7 +36,7 @@ CFLAGS += -I"$(IAR_INC)"
|
||||
AFLAGS = --cpu 5TEJ
|
||||
LDFLAGS =
|
||||
LK = "$(TARGET_GEN_LIB)" "$(TARGET_CSP_LIB)" "$(TARGET_BSP_LIB)"
|
||||
-;LK += "$(IAR_LIB)\dl4tpannl8f.r79"
|
||||
+;LK += "$(IAR_LIB)/dl4tpannl8f.r79"
|
||||
MAP = --map
|
||||
LDESC = --config
|
||||
ENTRY = --entry
|
||||
diff --git a/makerule/lpc32xx/make.lpc32xx.keil b/makerule/lpc32xx/make.lpc32xx.keil
|
||||
index dd27583..7334d3f 100644
|
||||
--- a/makerule/lpc32xx/make.lpc32xx.keil
|
||||
+++ b/makerule/lpc32xx/make.lpc32xx.keil
|
||||
@@ -19,7 +19,7 @@
|
||||
# use without further testing or modification.
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.environment
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.environment
|
||||
|
||||
CC =armcc
|
||||
CCP =armcc
|
||||
@@ -27,11 +27,11 @@ AS =armasm
|
||||
LD =armlink
|
||||
AR =armar -r -s
|
||||
CFLAGS =--arm -O3 -g --device DARMP3 -D__MICROLIB
|
||||
-CFLAGS +=-I$(KEIL_RVCT)\inc -I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR)
|
||||
+CFLAGS +=-I$(KEIL_RVCT)/inc -I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR)
|
||||
AFLAGS =--arm --device=DARMP3
|
||||
AFLAGS +=-I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR)
|
||||
LDFLAGS =--noremove
|
||||
-LK =--device DARMP3 --libpath $(KEIL_RVCT)\lib --scan $(TARGET_CSP_LIB)
|
||||
+LK =--device DARMP3 --libpath $(KEIL_RVCT)/lib --scan $(TARGET_CSP_LIB)
|
||||
LK +=--scan $(TARGET_BSP_LIB)
|
||||
LK +=--scan $(TARGET_GEN_LIB)
|
||||
MAP =--map --list
|
||||
diff --git a/makerule/lpc32xx/make.lpc32xx.rvw b/makerule/lpc32xx/make.lpc32xx.rvw
|
||||
index 59961dd..2419976 100644
|
||||
--- a/makerule/lpc32xx/make.lpc32xx.rvw
|
||||
+++ b/makerule/lpc32xx/make.lpc32xx.rvw
|
||||
@@ -19,7 +19,7 @@
|
||||
# use without further testing or modification.
|
||||
########################################################################
|
||||
|
||||
-include $(NXPMCU_SOFTWARE)\makerule\common\make.rules.environment
|
||||
+include $(NXPMCU_SOFTWARE)/makerule/common/make.rules.environment
|
||||
|
||||
CC =armcc
|
||||
CCP =armcpp
|
||||
--
|
||||
1.7.7.3
|
||||
|
||||
70
deprecated/firmware/buildroot/boot/lpc32xxcdl/lpc32xxcdl.mk
Normal file
70
deprecated/firmware/buildroot/boot/lpc32xxcdl/lpc32xxcdl.mk
Normal file
@@ -0,0 +1,70 @@
|
||||
################################################################################
|
||||
#
|
||||
# lpc32xxcdl
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LPC32XXCDL_VERSION = lpc32xx_cdl_v2.11
|
||||
LPC32XXCDL_SITE = http://git.lpcware.com/lpc3xxx_cdl.git
|
||||
LPC32XXCDL_SITE_METHOD = git
|
||||
|
||||
LPC32XXCDL_INSTALL_TARGET = NO
|
||||
LPC32XXCDL_INSTALL_IMAGES = YES
|
||||
|
||||
ifeq ($(BR2_TARGET_LPC32XXCDL_BOARDNAME),"ea3250")
|
||||
LPC32XXCDL_KICKSTART = kickstart/nand
|
||||
LPC32XXCDL_KICKSTART_BURNER = nand/kickstart
|
||||
LPC32XXCDL_S1L = s1l
|
||||
LPC32XXCDL_S1L_BURNER = nand/s1lapp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_LPC32XXCDL_BOARDNAME),"phy3250")
|
||||
LPC32XXCDL_KICKSTART = kickstart/kickstart_nand
|
||||
LPC32XXCDL_KICKSTART_BURNER = nand/kickstart
|
||||
LPC32XXCDL_S1L = s1l/s1l_nand_boot
|
||||
LPC32XXCDL_S1L_BURNER = nand/s1lapp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_LPC32XXCDL_BOARDNAME),"fdi3250")
|
||||
LPC32XXCDL_KICKSTART = kickstart/nand
|
||||
LPC32XXCDL_KICKSTART_BURNER = nand/kickstart_jtag
|
||||
LPC32XXCDL_S1L = s1l
|
||||
LPC32XXCDL_S1L_BURNER = nand/s1lapp_jtag
|
||||
endif
|
||||
|
||||
LPC32XXCDL_BUILD_FLAGS = \
|
||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
NXPMCU_WINBASE=$(@D) \
|
||||
NXPMCU_SOFTWARE=$(@D) \
|
||||
BSP=$(BR2_TARGET_LPC32XXCDL_BOARDNAME) \
|
||||
CSP=lpc32xx TOOL=gnu GEN=lpc
|
||||
|
||||
LPC32XXCDL_BOARD_STARTUP_DIR = \
|
||||
csps/lpc32xx/bsps/$(BR2_TARGET_LPC32XXCDL_BOARDNAME)/startup/examples/
|
||||
|
||||
# Source files are with dos newlines, which our patch infrastructure doesn't
|
||||
# handle. Work around it by converting the affected files to unix newlines
|
||||
# before patching
|
||||
define LPC32XXCDL_DOS2UNIX_FOR_PATCH
|
||||
sed -n 's|^[+-]\{3\} [^/]\+\([^ \t]*\)\(.*\)|$(@D)\1|p' \
|
||||
boot/lpc32xxcdl/*.patch| sort -u | xargs $(SED) 's/\x0D$$//'
|
||||
endef
|
||||
|
||||
LPC32XXCDL_POST_EXTRACT_HOOKS += LPC32XXCDL_DOS2UNIX_FOR_PATCH
|
||||
|
||||
define LPC32XXCDL_BUILD_CMDS
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_KICKSTART_BURNER)
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_KICKSTART)
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_S1L_BURNER)
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_S1L)
|
||||
endef
|
||||
|
||||
define LPC32XXCDL_INSTALL_IMAGES_CMDS
|
||||
cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_KICKSTART_BURNER)/*gnu.bin $(BINARIES_DIR)
|
||||
cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_KICKSTART)/*gnu.bin $(BINARIES_DIR)
|
||||
cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_S1L_BURNER)/*gnu.bin $(BINARIES_DIR)
|
||||
cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_S1L)/*gnu.bin $(BINARIES_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
90
deprecated/firmware/buildroot/boot/mxs-bootlets/Config.in
Normal file
90
deprecated/firmware/buildroot/boot/mxs-bootlets/Config.in
Normal file
@@ -0,0 +1,90 @@
|
||||
config BR2_TARGET_MXS_BOOTLETS
|
||||
bool "mxs-bootlets"
|
||||
depends on BR2_arm
|
||||
help
|
||||
Stage1 bootloaders for Freescale iMX23/iMX28 SoCs
|
||||
|
||||
if BR2_TARGET_MXS_BOOTLETS
|
||||
|
||||
choice
|
||||
prompt "Source"
|
||||
default BR2_TARGET_MXS_BOOTLETS_FREESCALE
|
||||
help
|
||||
Select the location of the bootlets you want to use
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_FREESCALE
|
||||
bool "Freescale 10.12.01 version"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL
|
||||
bool "Custom tarball"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL
|
||||
depends on BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL
|
||||
string "URL of custom bootlets tarball"
|
||||
|
||||
if BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_URL
|
||||
string "URL of custom Git repository"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_VERSION
|
||||
string "Custom Git version"
|
||||
|
||||
endif
|
||||
|
||||
choice
|
||||
prompt "Bootstream"
|
||||
help
|
||||
Select which bootstream to generate
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_BAREBOX
|
||||
depends on BR2_TARGET_BAREBOX
|
||||
bool "Barebox Bootloader"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_LINUX
|
||||
depends on BR2_LINUX_KERNEL
|
||||
bool "Linux Kernel"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_UBOOT
|
||||
depends on BR2_TARGET_UBOOT
|
||||
bool "U-boot bootloader"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_HAS_IVT
|
||||
bool "HAB Support"
|
||||
help
|
||||
Enable this option if you are building bootlets
|
||||
for the iMX28 platform that needs to include instructions
|
||||
for the secure boot mechanism present on these SoCs
|
||||
|
||||
choice
|
||||
prompt "Board"
|
||||
help
|
||||
Select the board to build the bootlets for
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_STMP37xx
|
||||
bool "Sigmatel ST-MP3-7xx Board"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_STMP378x
|
||||
bool "Sigmatel ST-MP3-78x Board"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_IMX28EVK
|
||||
bool "Freescale iMX28 EVK Board"
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD
|
||||
bool "Custom board"
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD_NAME
|
||||
string "Custom board name"
|
||||
depends on BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD
|
||||
help
|
||||
Name of the board to build the bootlets for
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,34 @@
|
||||
// STMP378x ROM command script to load and run U-Boot
|
||||
|
||||
sources {
|
||||
power_prep="./power_prep/power_prep";
|
||||
sdram_prep="./boot_prep/boot_prep";
|
||||
barebox="./barebox";
|
||||
}
|
||||
|
||||
section (0) {
|
||||
|
||||
//----------------------------------------------------------
|
||||
// Power Supply initialization
|
||||
//----------------------------------------------------------
|
||||
|
||||
load power_prep;
|
||||
load ivt (entry = power_prep:_start) > 0x8000;
|
||||
hab call 0x8000;
|
||||
|
||||
//----------------------------------------------------------
|
||||
// SDRAM initialization
|
||||
//----------------------------------------------------------
|
||||
|
||||
load sdram_prep;
|
||||
load ivt (entry = sdram_prep:_start) > 0x8000;
|
||||
hab call 0x8000;
|
||||
//----------------------------------------------------------
|
||||
// Load and call u_boot - ELF ARM image
|
||||
//----------------------------------------------------------
|
||||
|
||||
load barebox;
|
||||
load ivt (entry = barebox:start) > 0x8000;
|
||||
hab call 0x8000;
|
||||
|
||||
}
|
||||
105
deprecated/firmware/buildroot/boot/mxs-bootlets/mxs-bootlets.mk
Normal file
105
deprecated/firmware/buildroot/boot/mxs-bootlets/mxs-bootlets.mk
Normal file
@@ -0,0 +1,105 @@
|
||||
################################################################################
|
||||
#
|
||||
# mxs-bootlets
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL),y)
|
||||
MXS_BOOTLETS_TARBALL = $(call qstrip,$(BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL))
|
||||
MXS_BOOTLETS_SITE = $(patsubst %/,%,$(dir $(MXS_BOOTLETS_TARBALL)))
|
||||
MXS_BOOTLETS_SOURCE = $(notdir $(MXS_BOOTLETS_TARBALL))
|
||||
BR_NO_CHECK_HASH_FOR += $(MXS_BOOTLETS_SOURCE)
|
||||
else ifeq ($(BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT),y)
|
||||
MXS_BOOTLETS_SITE = $(BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_URL)
|
||||
MXS_BOOTLETS_SITE_METHOD = git
|
||||
MXS_BOOTLETS_VERSION = $(call qstrip,$(BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_VERSION))
|
||||
else
|
||||
MXS_BOOTLETS_VERSION = 10.12.01
|
||||
MXS_BOOTLETS_SITE = http://download.ossystems.com.br/bsp/freescale/source
|
||||
MXS_BOOTLETS_SOURCE = imx-bootlets-src-$(MXS_BOOTLETS_VERSION).tar.gz
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_STMP37xx),y)
|
||||
MXS_BOOTLETS_BOARD = stmp37xx_dev
|
||||
else ifeq ($(BR2_TARGET_MXS_BOOTLETS_STMP378x),y)
|
||||
MXS_BOOTLETS_BOARD = stmp378x_dev
|
||||
else ifeq ($(BR2_TARGET_MXS_BOOTLETS_IMX28EVK),y)
|
||||
MXS_BOOTLETS_BOARD = iMX28_EVK
|
||||
else ifeq ($(BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD),y)
|
||||
MXS_BOOTLETS_BOARD = $(call qstrip,$(BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD_NAME))
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_HAS_IVT),y)
|
||||
MXS_BOOTLETS_IVT_SUFFIX = _ivt
|
||||
MXS_BOOTLETS_ELFTOSB_OPTIONS += -f imx28
|
||||
endif
|
||||
|
||||
MXS_BOOTLETS_DEPENDENCIES = host-elftosb
|
||||
MXS_BOOTLETS_LICENSE = GPLv2+
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_BAREBOX),y)
|
||||
MXS_BOOTLETS_DEPENDENCIES += barebox
|
||||
MXS_BOOTLETS_BOOTDESC = barebox$(MXS_BOOTLETS_IVT_SUFFIX).bd
|
||||
MXS_BOOTLETS_BOOTSTREAM = $(MXS_BOOTLETS_BOARD)_barebox$(MXS_BOOTLETS_IVT_SUFFIX).sb
|
||||
|
||||
else ifeq ($(BR2_TARGET_MXS_BOOTLETS_LINUX),y)
|
||||
MXS_BOOTLETS_DEPENDENCIES += linux
|
||||
MXS_BOOTLETS_BOOTDESC = linux$(MXS_BOOTLETS_IVT_SUFFIX).bd
|
||||
MXS_BOOTLETS_BOOTSTREAM = $(MXS_BOOTLETS_BOARD)_linux$(MXS_BOOTLETS_IVT_SUFFIX).sb
|
||||
|
||||
else ifeq ($(BR2_TARGET_MXS_BOOTLETS_UBOOT),y)
|
||||
MXS_BOOTLETS_DEPENDENCIES += uboot
|
||||
MXS_BOOTLETS_BOOTDESC = uboot$(MXS_BOOTLETS_IVT_SUFFIX).bd
|
||||
MXS_BOOTLETS_BOOTSTREAM = $(MXS_BOOTLETS_BOARD)_uboot$(MXS_BOOTLETS_IVT_SUFFIX).sb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_BAREBOX),y)
|
||||
define MXS_BOOTLETS_SED_BAREBOX
|
||||
sed -i 's,[^ *]barebox.*;,\tbarebox="$(BAREBOX_DIR)/barebox";,' $(@D)/$(MXS_BOOTLETS_BOOTDESC)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_LINUX),y)
|
||||
define MXS_BOOTLETS_BUILD_LINUX_PREP
|
||||
BOARD=$(MXS_BOOTLETS_BOARD) CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
$(MAKE1) -C $(@D) linux_prep
|
||||
endef
|
||||
define MXS_BOOTLETS_SED_LINUX
|
||||
sed -i 's,[^ *]linux_prep.*;,\tlinux_prep="$(@D)/linux_prep/output-target/linux_prep";,' $(@D)/$(MXS_BOOTLETS_BOOTDESC)
|
||||
sed -i 's,[^ *]zImage.*;,\tzImage="$(LINUX_DIR)/arch/arm/boot/zImage";,' $(@D)/$(MXS_BOOTLETS_BOOTDESC)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_MXS_BOOTLETS_UBOOT),y)
|
||||
define MXS_BOOTLETS_SED_UBOOT
|
||||
sed -i 's,[^ *]u_boot.*;,\tu_boot="$(UBOOT_DIR)/u-boot";,' $(@D)/$(MXS_BOOTLETS_BOOTDESC)
|
||||
endef
|
||||
endif
|
||||
|
||||
define MXS_BOOTLETS_INSTALL_BAREBOX_BOOTDESC
|
||||
cp boot/mxs-bootlets/barebox_ivt.bd $(@D)/
|
||||
endef
|
||||
|
||||
MXS_BOOTLETS_POST_EXTRACT_HOOKS += MXS_BOOTLETS_INSTALL_BAREBOX_BOOTDESC
|
||||
|
||||
define MXS_BOOTLETS_BUILD_CMDS
|
||||
BOARD=$(MXS_BOOTLETS_BOARD) CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
$(MAKE1) -C $(@D) power_prep
|
||||
BOARD=$(MXS_BOOTLETS_BOARD) CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
$(MAKE1) -C $(@D) boot_prep
|
||||
$(MXS_BOOTLETS_BUILD_LINUX_PREP)
|
||||
sed -i 's,[^ *]power_prep.*;,\tpower_prep="$(@D)/power_prep/power_prep";,' $(@D)/$(MXS_BOOTLETS_BOOTDESC)
|
||||
sed -i 's,[^ *]sdram_prep.*;,\tsdram_prep="$(@D)/boot_prep/boot_prep";,' $(@D)/$(MXS_BOOTLETS_BOOTDESC)
|
||||
$(MXS_BOOTLETS_SED_BAREBOX)
|
||||
$(MXS_BOOTLETS_SED_LINUX)
|
||||
$(MXS_BOOTLETS_SED_UBOOT)
|
||||
$(HOST_DIR)/usr/bin/elftosb $(MXS_BOOTLETS_ELFTOSB_OPTIONS) \
|
||||
-z -c $(@D)/$(MXS_BOOTLETS_BOOTDESC) \
|
||||
-o $(@D)/$(MXS_BOOTLETS_BOOTSTREAM)
|
||||
endef
|
||||
|
||||
define MXS_BOOTLETS_INSTALL_TARGET_CMDS
|
||||
cp $(@D)/$(MXS_BOOTLETS_BOOTSTREAM) $(BINARIES_DIR)/
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
59
deprecated/firmware/buildroot/boot/syslinux/Config.in
Normal file
59
deprecated/firmware/buildroot/boot/syslinux/Config.in
Normal file
@@ -0,0 +1,59 @@
|
||||
config BR2_TARGET_SYSLINUX
|
||||
bool "syslinux"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_HOSTARCH_NEEDS_IA32_COMPILER
|
||||
help
|
||||
The syslinux bootloader for x86 systems.
|
||||
This includes: syslinux, pxelinux, extlinux.
|
||||
|
||||
http://syslinux.org
|
||||
|
||||
if BR2_TARGET_SYSLINUX
|
||||
|
||||
config BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
||||
bool
|
||||
|
||||
choice
|
||||
bool "Image to install"
|
||||
|
||||
config BR2_TARGET_SYSLINUX_ISOLINUX
|
||||
bool "isolinux"
|
||||
select BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
||||
help
|
||||
Install the legacy-BIOS 'isolinux' image, to boot off
|
||||
optical media (CDROM, DVD.)
|
||||
|
||||
config BR2_TARGET_SYSLINUX_PXELINUX
|
||||
bool "pxelinux"
|
||||
select BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
||||
help
|
||||
Install the legacy-BIOS 'pxelinux' image, to boot off
|
||||
the network using PXE.
|
||||
|
||||
config BR2_TARGET_SYSLINUX_MBR
|
||||
bool "mbr"
|
||||
select BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
||||
help
|
||||
Install the legacy-BIOS 'mbr' image, to boot off a
|
||||
local MBR-partition (e.g. prepared with 'extlinux'
|
||||
or 'syslinux').
|
||||
|
||||
config BR2_TARGET_SYSLINUX_EFI
|
||||
bool "efi"
|
||||
select BR2_PACKAGE_GNU_EFI
|
||||
help
|
||||
Install the 'efi' image, to boot from an EFI environment.
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
||||
|
||||
config BR2_TARGET_SYSLINUX_C32
|
||||
string "modules to install"
|
||||
help
|
||||
Enter a space-separated list of .c32 modules to install.
|
||||
Leave empty to install no module.
|
||||
|
||||
endif # BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
||||
|
||||
endif # BR2_TARGET_SYSLINUX
|
||||
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/boot/syslinux/sha256sums.asc
|
||||
sha256 26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e syslinux-6.03.tar.xz
|
||||
89
deprecated/firmware/buildroot/boot/syslinux/syslinux.mk
Normal file
89
deprecated/firmware/buildroot/boot/syslinux/syslinux.mk
Normal file
@@ -0,0 +1,89 @@
|
||||
################################################################################
|
||||
#
|
||||
# syslinux to make target msdos/iso9660 filesystems bootable
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SYSLINUX_VERSION = 6.03
|
||||
SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.xz
|
||||
SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux
|
||||
|
||||
SYSLINUX_LICENSE = GPLv2+
|
||||
SYSLINUX_LICENSE_FILES = COPYING
|
||||
|
||||
SYSLINUX_INSTALL_IMAGES = YES
|
||||
|
||||
SYSLINUX_DEPENDENCIES = host-nasm host-util-linux host-upx
|
||||
|
||||
ifeq ($(BR2_TARGET_SYSLINUX_LEGACY_BIOS),y)
|
||||
SYSLINUX_TARGET = bios
|
||||
endif
|
||||
|
||||
# The syslinux build system must be forced to use Buildroot's gnu-efi
|
||||
# package by setting EFIINC, LIBDIR and LIBEFI. Otherwise, it uses its
|
||||
# own copy of gnu-efi included in syslinux's sources since 6.03
|
||||
# release.
|
||||
ifeq ($(BR2_TARGET_SYSLINUX_EFI),y)
|
||||
ifeq ($(BR2_ARCH_IS_64),y)
|
||||
SYSLINUX_EFI_BITS = efi64
|
||||
else
|
||||
SYSLINUX_EFI_BITS = efi32
|
||||
endif # 64-bit
|
||||
SYSLINUX_DEPENDENCIES += gnu-efi
|
||||
SYSLINUX_TARGET = $(SYSLINUX_EFI_BITS)
|
||||
SYSLINUX_EFI_ARGS = \
|
||||
EFIINC=$(STAGING_DIR)/usr/include/efi \
|
||||
LIBDIR=$(STAGING_DIR)/usr/lib \
|
||||
LIBEFI=$(STAGING_DIR)/usr/lib/libefi.a
|
||||
endif # EFI
|
||||
|
||||
# The syslinux tarball comes with pre-compiled binaries.
|
||||
# Since timestamps might not be in the correct order, a rebuild is
|
||||
# not always triggered for all the different images.
|
||||
# Cleanup the mess even before we attempt a build, so we indeed
|
||||
# build everything from source.
|
||||
define SYSLINUX_CLEANUP
|
||||
rm -rf $(@D)/bios $(@D)/efi32 $(@D)/efi64
|
||||
endef
|
||||
SYSLINUX_POST_PATCH_HOOKS += SYSLINUX_CLEANUP
|
||||
|
||||
# syslinux build system has no convenient way to pass CFLAGS,
|
||||
# and the internal zlib should take precedence so -I shouldn't
|
||||
# be used.
|
||||
define SYSLINUX_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) CC="$(HOSTCC) -idirafter $(HOST_DIR)/usr/include $(HOST_LDFLAGS)" \
|
||||
AR="$(HOSTAR)" $(SYSLINUX_EFI_ARGS) -C $(@D) $(SYSLINUX_TARGET)
|
||||
endef
|
||||
|
||||
# While the actual bootloader is compiled for the target, several
|
||||
# utilities for installing the bootloader are meant for the host.
|
||||
# Repeat the target, otherwise syslinux will try to build everything
|
||||
# Repeat CC and AR, since syslinux really wants to check them at
|
||||
# install time
|
||||
define SYSLINUX_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) CC="$(HOSTCC) -idirafter $(HOST_DIR)/usr/include $(HOST_LDFLAGS)" \
|
||||
AR="$(HOSTAR)" $(SYSLINUX_EFI_ARGS) INSTALLROOT=$(HOST_DIR) \
|
||||
-C $(@D) $(SYSLINUX_TARGET) install
|
||||
endef
|
||||
|
||||
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += bios/core/isolinux.bin
|
||||
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += bios/core/pxelinux.bin
|
||||
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_MBR) += bios/mbr/mbr.bin
|
||||
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_EFI) += $(SYSLINUX_EFI_BITS)/efi/syslinux.efi
|
||||
|
||||
SYSLINUX_C32 = $(call qstrip,$(BR2_TARGET_SYSLINUX_C32))
|
||||
|
||||
# We install the c32 modules from the host-installed tree, where they
|
||||
# are all neatly installed in a single location, while they are
|
||||
# scattered around everywhere in the build tree.
|
||||
define SYSLINUX_INSTALL_IMAGES_CMDS
|
||||
for i in $(SYSLINUX_IMAGES-y); do \
|
||||
$(INSTALL) -D -m 0755 $(@D)/$$i $(BINARIES_DIR)/syslinux/$${i##*/}; \
|
||||
done
|
||||
for i in $(SYSLINUX_C32); do \
|
||||
$(INSTALL) -D -m 0755 $(HOST_DIR)/usr/share/syslinux/$${i} \
|
||||
$(BINARIES_DIR)/syslinux/$${i}; \
|
||||
done
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,742 @@
|
||||
From ee11fed43e2bd029f71af1e72ab9bb5652f5fc54 Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
Date: Wed, 29 Jul 2015 20:32:59 +0300
|
||||
Subject: [PATCH] Revert "arch: Make board selection choices optional"
|
||||
|
||||
This reverts commit a26cd04920dc069fd6e91abb785426cf6c29f45f.
|
||||
|
||||
Reverted commit caused an issue with "make oldconfig" - default prompt
|
||||
for target selection was set as No that lead to missing platform
|
||||
selection by automated scripts like that:
|
||||
------------------>8------------------
|
||||
"yes "" | make oldconfig" on defconfig
|
||||
------------------>8------------------
|
||||
|
||||
And that lead to build failure:
|
||||
------------------>8------------------
|
||||
$ make
|
||||
scripts/kconfig/conf --silentoldconfig Kconfig
|
||||
CHK include/config.h
|
||||
UPD include/config.h
|
||||
GEN include/autoconf.mk
|
||||
In file included from ./include/common.h:18:0:
|
||||
include/config.h:5:22: fatal error: configs/.h: No such file or directory
|
||||
#include <configs/.h>
|
||||
^
|
||||
compilation terminated.
|
||||
scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk' failed
|
||||
make[1]: *** [include/autoconf.mk] Error 1
|
||||
------------------>8------------------
|
||||
|
||||
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
|
||||
---
|
||||
arch/arc/Kconfig | 1 -
|
||||
arch/arm/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/exynos/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/mx5/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/mx6/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/omap3/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/omap4/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/omap5/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/rmobile/Kconfig | 1 -
|
||||
arch/arm/cpu/armv7/s5pc1xx/Kconfig | 1 -
|
||||
arch/arm/mach-at91/Kconfig | 1 -
|
||||
arch/arm/mach-bcm283x/Kconfig | 1 -
|
||||
arch/arm/mach-davinci/Kconfig | 1 -
|
||||
arch/arm/mach-integrator/Kconfig | 2 --
|
||||
arch/arm/mach-keystone/Kconfig | 1 -
|
||||
arch/arm/mach-kirkwood/Kconfig | 1 -
|
||||
arch/arm/mach-nomadik/Kconfig | 1 -
|
||||
arch/arm/mach-orion5x/Kconfig | 1 -
|
||||
arch/arm/mach-socfpga/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra114/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra124/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra20/Kconfig | 1 -
|
||||
arch/arm/mach-tegra/tegra30/Kconfig | 1 -
|
||||
arch/arm/mach-zynq/Kconfig | 1 -
|
||||
arch/avr32/Kconfig | 1 -
|
||||
arch/blackfin/Kconfig | 1 -
|
||||
arch/m68k/Kconfig | 1 -
|
||||
arch/microblaze/Kconfig | 1 -
|
||||
arch/mips/Kconfig | 1 -
|
||||
arch/nds32/Kconfig | 1 -
|
||||
arch/nios2/Kconfig | 1 -
|
||||
arch/openrisc/Kconfig | 1 -
|
||||
arch/powerpc/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc512x/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc5xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc5xxx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc8260/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc83xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc85xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc86xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/mpc8xx/Kconfig | 1 -
|
||||
arch/powerpc/cpu/ppc4xx/Kconfig | 1 -
|
||||
arch/sh/Kconfig | 1 -
|
||||
arch/sparc/Kconfig | 1 -
|
||||
board/amcc/canyonlands/Kconfig | 1 -
|
||||
board/coreboot/Kconfig | 1 -
|
||||
board/dbau1x00/Kconfig | 1 -
|
||||
board/google/Kconfig | 1 -
|
||||
board/intel/Kconfig | 1 -
|
||||
board/micronas/vct/Kconfig | 1 -
|
||||
board/seco/Kconfig | 2 --
|
||||
board/sunxi/Kconfig | 1 -
|
||||
53 files changed, 55 deletions(-)
|
||||
|
||||
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
|
||||
index 925e312..640cda8 100644
|
||||
--- a/arch/arc/Kconfig
|
||||
+++ b/arch/arc/Kconfig
|
||||
@@ -129,7 +129,6 @@ config ARC_CACHE_LINE_SHIFT
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_TB100
|
||||
bool "Support tb100"
|
||||
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
|
||||
index 9908b43..8eeb46c 100644
|
||||
--- a/arch/arm/Kconfig
|
||||
+++ b/arch/arm/Kconfig
|
||||
@@ -64,7 +64,6 @@ config SEMIHOSTING
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config ARCH_AT91
|
||||
bool "Atmel AT91"
|
||||
diff --git a/arch/arm/cpu/armv7/exynos/Kconfig b/arch/arm/cpu/armv7/exynos/Kconfig
|
||||
index 4a7d82f..f2fe748 100644
|
||||
--- a/arch/arm/cpu/armv7/exynos/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/exynos/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_EXYNOS
|
||||
|
||||
choice
|
||||
prompt "EXYNOS board select"
|
||||
- optional
|
||||
|
||||
config TARGET_SMDKV310
|
||||
select SUPPORT_SPL
|
||||
diff --git a/arch/arm/cpu/armv7/mx5/Kconfig b/arch/arm/cpu/armv7/mx5/Kconfig
|
||||
index 9f250c6..2d6c0ce 100644
|
||||
--- a/arch/arm/cpu/armv7/mx5/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/mx5/Kconfig
|
||||
@@ -12,7 +12,6 @@ config MX53
|
||||
|
||||
choice
|
||||
prompt "MX5 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_USBARMORY
|
||||
bool "Support USB armory"
|
||||
diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig
|
||||
index 10908c4..662596f 100644
|
||||
--- a/arch/arm/cpu/armv7/mx6/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/mx6/Kconfig
|
||||
@@ -27,7 +27,6 @@ config MX6SX
|
||||
|
||||
choice
|
||||
prompt "MX6 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_SECOMX6
|
||||
bool "Support secomx6 boards"
|
||||
diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
|
||||
index b32a6b0..cc82c50 100644
|
||||
--- a/arch/arm/cpu/armv7/omap3/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
|
||||
@@ -2,7 +2,6 @@ if OMAP34XX
|
||||
|
||||
choice
|
||||
prompt "OMAP3 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_AM3517_EVM
|
||||
bool "AM3517 EVM"
|
||||
diff --git a/arch/arm/cpu/armv7/omap4/Kconfig b/arch/arm/cpu/armv7/omap4/Kconfig
|
||||
index df27ea1..eccf897 100644
|
||||
--- a/arch/arm/cpu/armv7/omap4/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/omap4/Kconfig
|
||||
@@ -2,7 +2,6 @@ if OMAP44XX
|
||||
|
||||
choice
|
||||
prompt "OMAP4 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_DUOVERO
|
||||
bool "OMAP4430 Gumstix Duovero"
|
||||
diff --git a/arch/arm/cpu/armv7/omap5/Kconfig b/arch/arm/cpu/armv7/omap5/Kconfig
|
||||
index 20c3bd9..aca862d 100644
|
||||
--- a/arch/arm/cpu/armv7/omap5/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/omap5/Kconfig
|
||||
@@ -2,7 +2,6 @@ if OMAP54XX
|
||||
|
||||
choice
|
||||
prompt "OMAP5 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_CM_T54
|
||||
bool "CompuLab CM-T54"
|
||||
diff --git a/arch/arm/cpu/armv7/rmobile/Kconfig b/arch/arm/cpu/armv7/rmobile/Kconfig
|
||||
index ef56286..638b63d 100644
|
||||
--- a/arch/arm/cpu/armv7/rmobile/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/rmobile/Kconfig
|
||||
@@ -2,7 +2,6 @@ if RMOBILE
|
||||
|
||||
choice
|
||||
prompt "Renesus ARM SoCs board select"
|
||||
- optional
|
||||
|
||||
config TARGET_ARMADILLO_800EVA
|
||||
bool "armadillo 800 eva board"
|
||||
diff --git a/arch/arm/cpu/armv7/s5pc1xx/Kconfig b/arch/arm/cpu/armv7/s5pc1xx/Kconfig
|
||||
index 792ef59..65cc9eb 100644
|
||||
--- a/arch/arm/cpu/armv7/s5pc1xx/Kconfig
|
||||
+++ b/arch/arm/cpu/armv7/s5pc1xx/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_S5PC1XX
|
||||
|
||||
choice
|
||||
prompt "S5PC1XX board select"
|
||||
- optional
|
||||
|
||||
config TARGET_S5P_GONI
|
||||
bool "S5P Goni board"
|
||||
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
|
||||
index bbf4228..5dc2cb2 100644
|
||||
--- a/arch/arm/mach-at91/Kconfig
|
||||
+++ b/arch/arm/mach-at91/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_AT91
|
||||
|
||||
choice
|
||||
prompt "Atmel AT91 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_AT91RM9200EK
|
||||
bool "Atmel AT91RM9200 evaluation kit"
|
||||
diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig
|
||||
index 2315a13..d40f505 100644
|
||||
--- a/arch/arm/mach-bcm283x/Kconfig
|
||||
+++ b/arch/arm/mach-bcm283x/Kconfig
|
||||
@@ -3,7 +3,6 @@ menu "Broadcom BCM283X family"
|
||||
|
||||
choice
|
||||
prompt "Broadcom BCM283X board select"
|
||||
- optional
|
||||
|
||||
config TARGET_RPI
|
||||
bool "Raspberry Pi"
|
||||
diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
|
||||
index e6cb390..3ef55d3 100644
|
||||
--- a/arch/arm/mach-davinci/Kconfig
|
||||
+++ b/arch/arm/mach-davinci/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_DAVINCI
|
||||
|
||||
choice
|
||||
prompt "DaVinci board select"
|
||||
- optional
|
||||
|
||||
config TARGET_ENBW_CMC
|
||||
bool "EnBW CMC board"
|
||||
diff --git a/arch/arm/mach-integrator/Kconfig b/arch/arm/mach-integrator/Kconfig
|
||||
index c54d69d..8ffc544 100644
|
||||
--- a/arch/arm/mach-integrator/Kconfig
|
||||
+++ b/arch/arm/mach-integrator/Kconfig
|
||||
@@ -3,7 +3,6 @@ menu "Integrator Options"
|
||||
|
||||
choice
|
||||
prompt "Integrator platform select"
|
||||
- optional
|
||||
|
||||
config ARCH_INTEGRATOR_AP
|
||||
bool "Support Integrator/AP platform"
|
||||
@@ -19,7 +18,6 @@ config ARCH_CINTEGRATOR
|
||||
|
||||
choice
|
||||
prompt "Integrator core module select"
|
||||
- optional
|
||||
|
||||
config CM720T
|
||||
bool "Core Module for ARM720T"
|
||||
diff --git a/arch/arm/mach-keystone/Kconfig b/arch/arm/mach-keystone/Kconfig
|
||||
index 67f1a33..134ae87 100644
|
||||
--- a/arch/arm/mach-keystone/Kconfig
|
||||
+++ b/arch/arm/mach-keystone/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_KEYSTONE
|
||||
|
||||
choice
|
||||
prompt "TI Keystone board select"
|
||||
- optional
|
||||
|
||||
config TARGET_K2HK_EVM
|
||||
bool "TI Keystone 2 Kepler/Hawking EVM"
|
||||
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
|
||||
index 1261885..45c6687 100644
|
||||
--- a/arch/arm/mach-kirkwood/Kconfig
|
||||
+++ b/arch/arm/mach-kirkwood/Kconfig
|
||||
@@ -2,7 +2,6 @@ if KIRKWOOD
|
||||
|
||||
choice
|
||||
prompt "Marvell Kirkwood board select"
|
||||
- optional
|
||||
|
||||
config TARGET_OPENRD
|
||||
bool "Marvell OpenRD Board"
|
||||
diff --git a/arch/arm/mach-nomadik/Kconfig b/arch/arm/mach-nomadik/Kconfig
|
||||
index ba72a41..265f336 100644
|
||||
--- a/arch/arm/mach-nomadik/Kconfig
|
||||
+++ b/arch/arm/mach-nomadik/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_NOMADIK
|
||||
|
||||
choice
|
||||
prompt "Nomadik board select"
|
||||
- optional
|
||||
|
||||
config NOMADIK_NHK8815
|
||||
bool "ST 8815 Nomadik Hardware Kit"
|
||||
diff --git a/arch/arm/mach-orion5x/Kconfig b/arch/arm/mach-orion5x/Kconfig
|
||||
index 7644b8d..291c511 100644
|
||||
--- a/arch/arm/mach-orion5x/Kconfig
|
||||
+++ b/arch/arm/mach-orion5x/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ORION5X
|
||||
|
||||
choice
|
||||
prompt "Marvell Orion board select"
|
||||
- optional
|
||||
|
||||
config TARGET_EDMINIV2
|
||||
bool "LaCie Ethernet Disk mini V2"
|
||||
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
|
||||
index e46c348..204efca 100644
|
||||
--- a/arch/arm/mach-socfpga/Kconfig
|
||||
+++ b/arch/arm/mach-socfpga/Kconfig
|
||||
@@ -2,7 +2,6 @@ if ARCH_SOCFPGA
|
||||
|
||||
choice
|
||||
prompt "Altera SOCFPGA board select"
|
||||
- optional
|
||||
|
||||
config TARGET_SOCFPGA_ARRIA5
|
||||
bool "Altera SOCFPGA Arria V"
|
||||
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
|
||||
index 54bd648..ef77c84 100644
|
||||
--- a/arch/arm/mach-tegra/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA
|
||||
|
||||
choice
|
||||
prompt "Tegra SoC select"
|
||||
- optional
|
||||
|
||||
config TEGRA20
|
||||
bool "Tegra20 family"
|
||||
diff --git a/arch/arm/mach-tegra/tegra114/Kconfig b/arch/arm/mach-tegra/tegra114/Kconfig
|
||||
index 1047b92..31012bc 100644
|
||||
--- a/arch/arm/mach-tegra/tegra114/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra114/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA114
|
||||
|
||||
choice
|
||||
prompt "Tegra114 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_DALMORE
|
||||
bool "NVIDIA Tegra114 Dalmore evaluation board"
|
||||
diff --git a/arch/arm/mach-tegra/tegra124/Kconfig b/arch/arm/mach-tegra/tegra124/Kconfig
|
||||
index f3324ff..86c1301 100644
|
||||
--- a/arch/arm/mach-tegra/tegra124/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra124/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA124
|
||||
|
||||
choice
|
||||
prompt "Tegra124 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_JETSON_TK1
|
||||
bool "NVIDIA Tegra124 Jetson TK1 board"
|
||||
diff --git a/arch/arm/mach-tegra/tegra20/Kconfig b/arch/arm/mach-tegra/tegra20/Kconfig
|
||||
index 1bb8dff..7f09f81 100644
|
||||
--- a/arch/arm/mach-tegra/tegra20/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra20/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA20
|
||||
|
||||
choice
|
||||
prompt "Tegra20 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_HARMONY
|
||||
bool "NVIDIA Tegra20 Harmony evaluation board"
|
||||
diff --git a/arch/arm/mach-tegra/tegra30/Kconfig b/arch/arm/mach-tegra/tegra30/Kconfig
|
||||
index e78331e..3abdc7b 100644
|
||||
--- a/arch/arm/mach-tegra/tegra30/Kconfig
|
||||
+++ b/arch/arm/mach-tegra/tegra30/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TEGRA30
|
||||
|
||||
choice
|
||||
prompt "Tegra30 board select"
|
||||
- optional
|
||||
|
||||
config TARGET_APALIS_T30
|
||||
bool "Toradex Apalis T30 board"
|
||||
diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig
|
||||
index 1de5b07..6b0e295 100644
|
||||
--- a/arch/arm/mach-zynq/Kconfig
|
||||
+++ b/arch/arm/mach-zynq/Kconfig
|
||||
@@ -10,7 +10,6 @@ config ZYNQ_CUSTOM_INIT
|
||||
|
||||
choice
|
||||
prompt "Xilinx Zynq board select"
|
||||
- optional
|
||||
|
||||
config TARGET_ZYNQ_ZED
|
||||
bool "Zynq ZedBoard"
|
||||
diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig
|
||||
index eb33774..801b9cc 100644
|
||||
--- a/arch/avr32/Kconfig
|
||||
+++ b/arch/avr32/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_ATNGW100
|
||||
bool "Support atngw100"
|
||||
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
|
||||
index 0a2fb4d..31913fe 100644
|
||||
--- a/arch/blackfin/Kconfig
|
||||
+++ b/arch/blackfin/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_BCT_BRETTL2
|
||||
bool "Support bct-brettl2"
|
||||
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
|
||||
index 26509b7..69cb0f7 100644
|
||||
--- a/arch/m68k/Kconfig
|
||||
+++ b/arch/m68k/Kconfig
|
||||
@@ -114,7 +114,6 @@ config M548x
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_M52277EVB
|
||||
bool "Support M52277EVB"
|
||||
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
|
||||
index 077b2a7..6f419f0 100644
|
||||
--- a/arch/microblaze/Kconfig
|
||||
+++ b/arch/microblaze/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_MICROBLAZE_GENERIC
|
||||
bool "Support microblaze-generic"
|
||||
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
|
||||
index 7f7e258..87b94ac 100644
|
||||
--- a/arch/mips/Kconfig
|
||||
+++ b/arch/mips/Kconfig
|
||||
@@ -10,7 +10,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_QEMU_MIPS
|
||||
bool "Support qemu-mips"
|
||||
diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig
|
||||
index 98b0282..81b0a01 100644
|
||||
--- a/arch/nds32/Kconfig
|
||||
+++ b/arch/nds32/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_ADP_AG101
|
||||
bool "Support adp-ag101"
|
||||
diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
|
||||
index 8ae7f6e..b3be7b5 100644
|
||||
--- a/arch/nios2/Kconfig
|
||||
+++ b/arch/nios2/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_NIOS2_GENERIC
|
||||
bool "Support nios2-generic"
|
||||
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
|
||||
index 11014d1..4d62b4c 100644
|
||||
--- a/arch/openrisc/Kconfig
|
||||
+++ b/arch/openrisc/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_OPENRISC_GENERIC
|
||||
bool "Support openrisc-generic"
|
||||
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
|
||||
index 3b3f446..8e5a3e2 100644
|
||||
--- a/arch/powerpc/Kconfig
|
||||
+++ b/arch/powerpc/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_ARCH
|
||||
|
||||
choice
|
||||
prompt "CPU select"
|
||||
- optional
|
||||
|
||||
config MPC512X
|
||||
bool "MPC512X"
|
||||
diff --git a/arch/powerpc/cpu/mpc512x/Kconfig b/arch/powerpc/cpu/mpc512x/Kconfig
|
||||
index 53450ae..a0f0ede 100644
|
||||
--- a/arch/powerpc/cpu/mpc512x/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc512x/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_PDM360NG
|
||||
bool "Support pdm360ng"
|
||||
diff --git a/arch/powerpc/cpu/mpc5xx/Kconfig b/arch/powerpc/cpu/mpc5xx/Kconfig
|
||||
index 5275447..aad4a7c 100644
|
||||
--- a/arch/powerpc/cpu/mpc5xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc5xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_CMI_MPC5XX
|
||||
bool "Support cmi_mpc5xx"
|
||||
diff --git a/arch/powerpc/cpu/mpc5xxx/Kconfig b/arch/powerpc/cpu/mpc5xxx/Kconfig
|
||||
index 5d49228..eec9d7d 100644
|
||||
--- a/arch/powerpc/cpu/mpc5xxx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc5xxx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_A3M071
|
||||
bool "Support a3m071"
|
||||
diff --git a/arch/powerpc/cpu/mpc8260/Kconfig b/arch/powerpc/cpu/mpc8260/Kconfig
|
||||
index e93732d..55941c8 100644
|
||||
--- a/arch/powerpc/cpu/mpc8260/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc8260/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_KM82XX
|
||||
bool "Support km82xx"
|
||||
diff --git a/arch/powerpc/cpu/mpc83xx/Kconfig b/arch/powerpc/cpu/mpc83xx/Kconfig
|
||||
index 3fb901f..88a3bd6 100644
|
||||
--- a/arch/powerpc/cpu/mpc83xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc83xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_MPC8308_P1M
|
||||
bool "Support mpc8308_p1m"
|
||||
diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig
|
||||
index 3e8d0b1..aff5fdb 100644
|
||||
--- a/arch/powerpc/cpu/mpc85xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc85xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_SBC8548
|
||||
bool "Support sbc8548"
|
||||
diff --git a/arch/powerpc/cpu/mpc86xx/Kconfig b/arch/powerpc/cpu/mpc86xx/Kconfig
|
||||
index fe1859d..14e8b1a 100644
|
||||
--- a/arch/powerpc/cpu/mpc86xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc86xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_SBC8641D
|
||||
bool "Support sbc8641d"
|
||||
diff --git a/arch/powerpc/cpu/mpc8xx/Kconfig b/arch/powerpc/cpu/mpc8xx/Kconfig
|
||||
index 79cee35..e8bcbe9 100644
|
||||
--- a/arch/powerpc/cpu/mpc8xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/mpc8xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_TQM823L
|
||||
bool "Support TQM823L"
|
||||
diff --git a/arch/powerpc/cpu/ppc4xx/Kconfig b/arch/powerpc/cpu/ppc4xx/Kconfig
|
||||
index 10b86e0..4d5954a 100644
|
||||
--- a/arch/powerpc/cpu/ppc4xx/Kconfig
|
||||
+++ b/arch/powerpc/cpu/ppc4xx/Kconfig
|
||||
@@ -6,7 +6,6 @@ config SYS_CPU
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_CSB272
|
||||
bool "Support csb272"
|
||||
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
|
||||
index 6ac22af..ff8f5b5 100644
|
||||
--- a/arch/sh/Kconfig
|
||||
+++ b/arch/sh/Kconfig
|
||||
@@ -29,7 +29,6 @@ config SH_32BIT
|
||||
|
||||
choice
|
||||
prompt "Target select"
|
||||
- optional
|
||||
|
||||
config TARGET_RSK7203
|
||||
bool "RSK+ 7203"
|
||||
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
|
||||
index 04dc08f..2df09b2 100644
|
||||
--- a/arch/sparc/Kconfig
|
||||
+++ b/arch/sparc/Kconfig
|
||||
@@ -14,7 +14,6 @@ config LEON3
|
||||
|
||||
choice
|
||||
prompt "Board select"
|
||||
- optional
|
||||
|
||||
config TARGET_GRSIM_LEON2
|
||||
bool "GRSIM simulating a LEON2 board"
|
||||
diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig
|
||||
index a655dbc..ef66ad4 100644
|
||||
--- a/board/amcc/canyonlands/Kconfig
|
||||
+++ b/board/amcc/canyonlands/Kconfig
|
||||
@@ -11,7 +11,6 @@ config SYS_CONFIG_NAME
|
||||
|
||||
choice BOARD_TYPE
|
||||
prompt "Select which board to build for"
|
||||
- optional
|
||||
|
||||
config CANYONLANDS
|
||||
bool "Glacier"
|
||||
diff --git a/board/coreboot/Kconfig b/board/coreboot/Kconfig
|
||||
index ede6065..dc9b70f 100644
|
||||
--- a/board/coreboot/Kconfig
|
||||
+++ b/board/coreboot/Kconfig
|
||||
@@ -8,7 +8,6 @@ if VENDOR_COREBOOT
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
- optional
|
||||
|
||||
config TARGET_COREBOOT
|
||||
bool "coreboot"
|
||||
diff --git a/board/dbau1x00/Kconfig b/board/dbau1x00/Kconfig
|
||||
index b813adb..1286e45 100644
|
||||
--- a/board/dbau1x00/Kconfig
|
||||
+++ b/board/dbau1x00/Kconfig
|
||||
@@ -13,7 +13,6 @@ menu "dbau1x00 board options"
|
||||
|
||||
choice
|
||||
prompt "Select au1x00 SoC type"
|
||||
- optional
|
||||
|
||||
config DBAU1100
|
||||
bool "Select AU1100"
|
||||
diff --git a/board/google/Kconfig b/board/google/Kconfig
|
||||
index e9559c9..302f68e 100644
|
||||
--- a/board/google/Kconfig
|
||||
+++ b/board/google/Kconfig
|
||||
@@ -8,7 +8,6 @@ if VENDOR_GOOGLE
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
- optional
|
||||
|
||||
config TARGET_CHROMEBOOK_LINK
|
||||
bool "Chromebook link"
|
||||
diff --git a/board/intel/Kconfig b/board/intel/Kconfig
|
||||
index 3d9ecf0..7fe21b9 100644
|
||||
--- a/board/intel/Kconfig
|
||||
+++ b/board/intel/Kconfig
|
||||
@@ -8,7 +8,6 @@ if VENDOR_INTEL
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
- optional
|
||||
|
||||
config TARGET_CROWNBAY
|
||||
bool "Crown Bay"
|
||||
diff --git a/board/micronas/vct/Kconfig b/board/micronas/vct/Kconfig
|
||||
index c518079..288a1ae 100644
|
||||
--- a/board/micronas/vct/Kconfig
|
||||
+++ b/board/micronas/vct/Kconfig
|
||||
@@ -13,7 +13,6 @@ menu "vct board options"
|
||||
|
||||
choice
|
||||
prompt "Board variant"
|
||||
- optional
|
||||
|
||||
config VCT_PLATINUM
|
||||
bool "Enable VCT_PLATINUM"
|
||||
diff --git a/board/seco/Kconfig b/board/seco/Kconfig
|
||||
index af16697..dcb1ac8 100644
|
||||
--- a/board/seco/Kconfig
|
||||
+++ b/board/seco/Kconfig
|
||||
@@ -2,7 +2,6 @@ if TARGET_SECOMX6
|
||||
|
||||
choice
|
||||
prompt "SECO i.MX6 Board variant"
|
||||
- optional
|
||||
|
||||
config SECOMX6_Q7
|
||||
bool "Q7"
|
||||
@@ -17,7 +16,6 @@ endchoice
|
||||
|
||||
choice
|
||||
prompt "SECO i.MX6 SoC variant"
|
||||
- optional
|
||||
|
||||
config SECOMX6Q
|
||||
bool "i.MX6Q"
|
||||
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
|
||||
index 2a1cd3c..808de26 100644
|
||||
--- a/board/sunxi/Kconfig
|
||||
+++ b/board/sunxi/Kconfig
|
||||
@@ -18,7 +18,6 @@ config SUNXI_GEN_SUN6I
|
||||
|
||||
choice
|
||||
prompt "Sunxi SoC Variant"
|
||||
- optional
|
||||
|
||||
config MACH_SUN4I
|
||||
bool "sun4i (Allwinner A10)"
|
||||
--
|
||||
2.4.3
|
||||
|
||||
378
deprecated/firmware/buildroot/boot/uboot/Config.in
Normal file
378
deprecated/firmware/buildroot/boot/uboot/Config.in
Normal file
@@ -0,0 +1,378 @@
|
||||
config BR2_TARGET_UBOOT
|
||||
bool "U-Boot"
|
||||
help
|
||||
Build "Das U-Boot" Boot Monitor
|
||||
|
||||
if BR2_TARGET_UBOOT
|
||||
choice
|
||||
prompt "Build system"
|
||||
default BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
|
||||
config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
bool "Legacy"
|
||||
help
|
||||
Select this option if you use an old U-Boot (older than 2015.04),
|
||||
so that we use the old build system.
|
||||
|
||||
config BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
bool "Kconfig"
|
||||
help
|
||||
Select this option if you use a recent U-Boot version (2015.04 or
|
||||
newer), so that we use the Kconfig build system.
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
config BR2_TARGET_UBOOT_BOARDNAME
|
||||
string "U-Boot board name"
|
||||
help
|
||||
One of U-Boot supported boards to be built.
|
||||
This will be suffixed with _config to meet U-Boot standard naming.
|
||||
See boards.cfg in U-Boot source code for the list of available
|
||||
configurations.
|
||||
endif
|
||||
|
||||
choice
|
||||
prompt "U-Boot Version"
|
||||
help
|
||||
Select the specific U-Boot version you want to use
|
||||
|
||||
config BR2_TARGET_UBOOT_LATEST_VERSION
|
||||
bool "2016.01"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
bool "Custom version"
|
||||
help
|
||||
This option allows to use a specific official versions
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
bool "Custom tarball"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_HG
|
||||
bool "Custom Mercurial repository"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
|
||||
string "U-Boot version"
|
||||
depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
|
||||
string "URL of custom U-Boot tarball"
|
||||
depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
|
||||
if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
|
||||
string "URL of custom repository"
|
||||
default BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL \
|
||||
if BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL != "" # legacy
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
|
||||
string "Custom repository version"
|
||||
default BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION \
|
||||
if BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION != "" # legacy
|
||||
help
|
||||
Revision to use in the typical format used by Git/Mercurial
|
||||
E.G. a sha id, a tag, branch, ..
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_VERSION
|
||||
string
|
||||
default "2016.01" if BR2_TARGET_UBOOT_LATEST_VERSION
|
||||
default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
|
||||
if BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
|
||||
if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
|
||||
string "custom patch dir"
|
||||
depends on BR2_DEPRECATED_SINCE_2015_05
|
||||
help
|
||||
If your board requires custom patches, add the path to the
|
||||
directory containing the patches here. The patches must be
|
||||
named uboot-<something>.patch.
|
||||
|
||||
Most users may leave this empty
|
||||
|
||||
NOTE: Use BR2_TARGET_UBOOT_PATCH instead.
|
||||
|
||||
config BR2_TARGET_UBOOT_PATCH
|
||||
string "Custom U-Boot patches"
|
||||
help
|
||||
A space-separated list of patches to apply to U-Boot.
|
||||
Each patch can be described as an URL, a local file path,
|
||||
or a directory. In the case of a directory, all files
|
||||
matching *.patch in the directory will be applied.
|
||||
|
||||
Most users may leave this empty
|
||||
|
||||
if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
||||
choice
|
||||
prompt "U-Boot configuration"
|
||||
default BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
|
||||
config BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
bool "Using an in-tree board defconfig file"
|
||||
|
||||
config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
||||
bool "Using a custom board (def)config file"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
|
||||
string "Board defconfig"
|
||||
depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
help
|
||||
Name of the board for which U-Boot should be built, without
|
||||
the _defconfig suffix.
|
||||
|
||||
config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
|
||||
string "Configuration file path"
|
||||
depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
||||
help
|
||||
Path to the U-Boot configuration file.
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_NEEDS_DTC
|
||||
bool "U-Boot needs dtc"
|
||||
select BR2_PACKAGE_HOST_DTC
|
||||
help
|
||||
Select this option if your U-Boot board configuration
|
||||
requires the Device Tree compiler to be available.
|
||||
|
||||
choice
|
||||
prompt "U-Boot binary format"
|
||||
default BR2_TARGET_UBOOT_FORMAT_BIN
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_AIS
|
||||
bool "u-boot.ais"
|
||||
help
|
||||
AIS (Application Image Script) is a format defined by TI.
|
||||
It is required to load code/data on OMAP-L1 processors.
|
||||
u-boot.ais contains U-Boot with the SPL support.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_BIN
|
||||
bool "u-boot.bin"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
|
||||
bool "u-boot-dtb.img"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_IMG
|
||||
bool "u-boot.img"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_IMX
|
||||
bool "u-boot.imx"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
|
||||
bool "u-boot-nand.bin"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_KWB
|
||||
depends on BR2_arm
|
||||
bool "u-boot.kwb (Marvell)"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_LDR
|
||||
depends on BR2_bfin
|
||||
bool "u-boot.ldr"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_ELF
|
||||
bool "u-boot.elf"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_SB
|
||||
depends on BR2_arm
|
||||
bool "u-boot.sb (Freescale i.MX28)"
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_SD
|
||||
depends on BR2_arm
|
||||
bool "u-boot.sd (Freescale i.MX28)"
|
||||
help
|
||||
This is Freescale i.MX28 SB format, with a header for booting
|
||||
from an SD card.
|
||||
|
||||
U-boot includes an mxsboot tool to generate this format,
|
||||
starting from 2011.12.
|
||||
|
||||
See doc/README.mxs (or doc/README.mx28_common before 2013.07)
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND
|
||||
depends on BR2_arm
|
||||
bool "u-boot.nand (Freescale i.MX28)"
|
||||
help
|
||||
This is Freescale i.MX28 BootStream format (.sb), with a header
|
||||
for booting from a NAND flash.
|
||||
|
||||
U-boot includes an mxsboot tool to generate this format,
|
||||
starting from 2011.12.
|
||||
|
||||
There are two possibilities when preparing an image writable to
|
||||
NAND flash:
|
||||
1) The NAND was not written at all yet or the BCB (Boot Control
|
||||
Blocks) is broken. In this case, the NAND image 'u-boot.nand'
|
||||
needs to written.
|
||||
2) The NAND flash was already written with a good BCB. This
|
||||
applies after 'u-boot.nand' was correctly written. There is no
|
||||
need to write the BCB again. In this case, the bootloader can be
|
||||
upgraded by writing 'u-boot.sb'.
|
||||
|
||||
To satisfy both cases, the 'u-boot.nand' image obtained from
|
||||
mxsboot as well as the U-Boot make target 'u-boot.sb' are copied
|
||||
to the binaries directory.
|
||||
|
||||
See doc/README.mxs (or doc/README.mx28_common before 2013.07)
|
||||
|
||||
if BR2_TARGET_UBOOT_FORMAT_NAND
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
|
||||
int "NAND page size"
|
||||
default 2048
|
||||
help
|
||||
The NAND page size of the targets NAND flash in bytes as a
|
||||
decimal integer value.
|
||||
|
||||
The value provided here is passed to the -w option of mxsboot.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
|
||||
int "NAND OOB size"
|
||||
default 64
|
||||
help
|
||||
The NAND OOB size of the targets NAND flash in bytes as a
|
||||
decimal integer value.
|
||||
|
||||
The value provided here is passed to the -o option of mxsboot.
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
|
||||
int "NAND erase size"
|
||||
default 131072
|
||||
help
|
||||
The NAND eraseblock size of the targets NAND flash in bytes as
|
||||
a decimal integer value.
|
||||
|
||||
The value provided here is passed to the -e option of mxsboot.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_CUSTOM
|
||||
bool "Custom (specify below)"
|
||||
help
|
||||
On some platforms, the standard U-Boot binary is not called
|
||||
u-boot.bin, but u-boot<something>.bin. If this is your case,
|
||||
you should select this option and specify the correct name
|
||||
in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
|
||||
string "U-Boot binary format: custom name"
|
||||
depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
|
||||
help
|
||||
Specify the correct name of the output binary created by
|
||||
U-Boot, if it is not one of the default names. For example:
|
||||
u-boot_magic.bin
|
||||
|
||||
config BR2_TARGET_UBOOT_OMAP_IFT
|
||||
depends on BR2_TARGET_UBOOT_FORMAT_BIN
|
||||
depends on BR2_arm || BR2_armeb
|
||||
select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
|
||||
bool "produce a .ift signed image (OMAP)"
|
||||
help
|
||||
Use gpsign to produce an image of u-boot.bin signed with
|
||||
a Configuration Header for booting on OMAP processors.
|
||||
This allows U-Boot to boot without the need for an
|
||||
intermediate bootloader (e.g. x-loader) if it is written
|
||||
on the first sector of the boot medium.
|
||||
This only works for some media, such as NAND. Check your
|
||||
chip documentation for details. You might also want to
|
||||
read the documentation of gpsign, the tool that generates
|
||||
the .ift image, at:
|
||||
https://github.com/nmenon/omap-u-boot-utils/blob/master/README
|
||||
|
||||
if BR2_TARGET_UBOOT_OMAP_IFT
|
||||
|
||||
config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
|
||||
string "gpsign Configuration Header config file"
|
||||
help
|
||||
The Configuration Header (CH) config file defines the
|
||||
desired content of the CH for the signed image.
|
||||
It usually contains external RAM settings and
|
||||
possibly other external devices initialization.
|
||||
The omap-u-boot-utils software contains example
|
||||
configuration files for some boards:
|
||||
https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
|
||||
|
||||
endif
|
||||
|
||||
config BR2_TARGET_UBOOT_SPL
|
||||
bool "Install U-Boot SPL binary image"
|
||||
depends on !BR2_TARGET_XLOADER
|
||||
help
|
||||
Install the U-Boot SPL binary image to the images
|
||||
directory.
|
||||
SPL is a first stage bootloader loaded into internal
|
||||
memory in charge of enabling and configuring the
|
||||
external memory (DDR), and load the u-boot program
|
||||
into DDR.
|
||||
|
||||
config BR2_TARGET_UBOOT_SPL_NAME
|
||||
string "U-Boot SPL binary image name"
|
||||
default "spl/u-boot-spl.bin"
|
||||
depends on BR2_TARGET_UBOOT_SPL
|
||||
help
|
||||
This is the name of the SPL binary, generated during
|
||||
u-boot build. For most platform it is spl/u-boot-spl.bin
|
||||
but not always. It is MLO on OMAP for example.
|
||||
|
||||
config BR2_TARGET_UBOOT_ZYNQ_IMAGE
|
||||
bool "Generate image for Xilinx Zynq"
|
||||
depends on BR2_arm
|
||||
depends on BR2_TARGET_UBOOT_SPL
|
||||
depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
|
||||
help
|
||||
Generate the BOOT.BIN file from U-Boot's SPL. The image
|
||||
boots the Xilinx Zynq chip without any FPGA bitstream.
|
||||
A bitstream can be loaded by the U-Boot. The SPL searchs
|
||||
for u-boot-dtb.img file so this U-Boot format is required
|
||||
to be set.
|
||||
|
||||
menuconfig BR2_TARGET_UBOOT_ENVIMAGE
|
||||
bool "Environment image"
|
||||
help
|
||||
Generate a valid binary environment image from a text file
|
||||
describing the key=value pairs of the environment.
|
||||
|
||||
The environment image will be called uboot-env.bin.
|
||||
|
||||
if BR2_TARGET_UBOOT_ENVIMAGE
|
||||
|
||||
config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
|
||||
string "Source file for environment"
|
||||
help
|
||||
Text file describing the environment.
|
||||
|
||||
config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
|
||||
string "Size of environment"
|
||||
help
|
||||
Size of envronment, can be prefixed with 0x for hexadecimal
|
||||
values.
|
||||
|
||||
config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
|
||||
bool "Environment has two copies"
|
||||
help
|
||||
Some platforms define in their U-Boot configuration that the
|
||||
U-Boot environment should be duplicated in two locations (for
|
||||
extra safety). Check your U-Boot configuration for the
|
||||
CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
|
||||
see if this is the case for your platform.
|
||||
|
||||
If it is the case, then you should enable this option to
|
||||
ensure that the U-Boot environment image generated by
|
||||
Buildroot is compatible with the "redundant environment"
|
||||
mechanism of U-Boot.
|
||||
|
||||
endif # BR2_TARGET_UBOOT_ENVIMAGE
|
||||
|
||||
endif # BR2_TARGET_UBOOT
|
||||
2
deprecated/firmware/buildroot/boot/uboot/uboot.hash
Normal file
2
deprecated/firmware/buildroot/boot/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 e5792fba9399d9804aa2ef667f14ff771e2cdece72367d340250265bf095a5d5 u-boot-2016.01.tar.bz2
|
||||
278
deprecated/firmware/buildroot/boot/uboot/uboot.mk
Normal file
278
deprecated/firmware/buildroot/boot/uboot/uboot.mk
Normal file
@@ -0,0 +1,278 @@
|
||||
################################################################################
|
||||
#
|
||||
# uboot
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION))
|
||||
UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))
|
||||
|
||||
UBOOT_LICENSE = GPLv2+
|
||||
UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
|
||||
|
||||
UBOOT_INSTALL_IMAGES = YES
|
||||
|
||||
ifeq ($(UBOOT_VERSION),custom)
|
||||
# Handle custom U-Boot tarballs as specified by the configuration
|
||||
UBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION))
|
||||
UBOOT_SITE = $(patsubst %/,%,$(dir $(UBOOT_TARBALL)))
|
||||
UBOOT_SOURCE = $(notdir $(UBOOT_TARBALL))
|
||||
BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
|
||||
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
|
||||
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
||||
UBOOT_SITE_METHOD = git
|
||||
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y)
|
||||
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
|
||||
UBOOT_SITE_METHOD = hg
|
||||
else
|
||||
# Handle stable official U-Boot versions
|
||||
UBOOT_SITE = ftp://ftp.denx.de/pub/u-boot
|
||||
UBOOT_SOURCE = u-boot-$(UBOOT_VERSION).tar.bz2
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_VERSION),y)
|
||||
BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_ELF),y)
|
||||
UBOOT_BIN = u-boot
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_KWB),y)
|
||||
UBOOT_BIN = u-boot.kwb
|
||||
UBOOT_MAKE_TARGET = $(UBOOT_BIN)
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_AIS),y)
|
||||
UBOOT_BIN = u-boot.ais
|
||||
UBOOT_MAKE_TARGET = $(UBOOT_BIN)
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_LDR),y)
|
||||
UBOOT_BIN = u-boot.ldr
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_BIN),y)
|
||||
UBOOT_BIN = u-boot-nand.bin
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMG),y)
|
||||
UBOOT_BIN = u-boot-dtb.img
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMG),y)
|
||||
UBOOT_BIN = u-boot.img
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMX),y)
|
||||
UBOOT_BIN = u-boot.imx
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)
|
||||
UBOOT_BIN = u-boot.sb
|
||||
UBOOT_MAKE_TARGET = $(UBOOT_BIN)
|
||||
UBOOT_DEPENDENCIES += host-elftosb
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
|
||||
# BootStream (.sb) is generated by U-Boot, we convert it to SD format
|
||||
UBOOT_BIN = u-boot.sd
|
||||
UBOOT_MAKE_TARGET = u-boot.sb
|
||||
UBOOT_DEPENDENCIES += host-elftosb
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND),y)
|
||||
UBOOT_BIN = u-boot.nand
|
||||
UBOOT_MAKE_TARGET = u-boot.sb
|
||||
UBOOT_DEPENDENCIES += host-elftosb
|
||||
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
|
||||
UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
|
||||
else
|
||||
UBOOT_BIN = u-boot.bin
|
||||
UBOOT_BIN_IFT = $(UBOOT_BIN).ift
|
||||
endif
|
||||
|
||||
# The kernel calls AArch64 'arm64', but U-Boot calls it just 'arm', so
|
||||
# we have to special case it. Similar for i386/x86_64 -> x86
|
||||
ifeq ($(KERNEL_ARCH),arm64)
|
||||
UBOOT_ARCH = arm
|
||||
else ifneq ($(filter $(KERNEL_ARCH),i386 x86_64),)
|
||||
UBOOT_ARCH = x86
|
||||
else
|
||||
UBOOT_ARCH = $(KERNEL_ARCH)
|
||||
endif
|
||||
|
||||
UBOOT_MAKE_OPTS += \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
ARCH=$(UBOOT_ARCH)
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
|
||||
UBOOT_DEPENDENCIES += host-dtc
|
||||
endif
|
||||
|
||||
# prior to u-boot 2013.10 the license info was in COPYING. Copy it so
|
||||
# legal-info finds it
|
||||
define UBOOT_COPY_OLD_LICENSE_FILE
|
||||
if [ -f $(@D)/COPYING ]; then \
|
||||
$(INSTALL) -m 0644 -D $(@D)/COPYING $(@D)/Licenses/gpl-2.0.txt; \
|
||||
fi
|
||||
endef
|
||||
|
||||
UBOOT_POST_EXTRACT_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
|
||||
UBOOT_POST_RSYNC_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
|
||||
|
||||
# Prior to Buildroot 2015.05, only patch directories were supported. New
|
||||
# configurations use BR2_TARGET_UBOOT_PATCH instead.
|
||||
ifneq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR)),)
|
||||
define UBOOT_APPLY_CUSTOM_PATCHES
|
||||
$(APPLY_PATCHES) $(@D) $(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR) \*.patch
|
||||
endef
|
||||
|
||||
UBOOT_POST_PATCH_HOOKS += UBOOT_APPLY_CUSTOM_PATCHES
|
||||
endif
|
||||
|
||||
# Analogous code exists in linux/linux.mk. Basically, the generic
|
||||
# package infrastructure handles downloading and applying remote
|
||||
# patches. Local patches are handled depending on whether they are
|
||||
# directories or files.
|
||||
UBOOT_PATCHES = $(call qstrip,$(BR2_TARGET_UBOOT_PATCH))
|
||||
UBOOT_PATCH = $(filter ftp://% http://% https://%,$(UBOOT_PATCHES))
|
||||
|
||||
define UBOOT_APPLY_LOCAL_PATCHES
|
||||
for p in $(filter-out ftp://% http://% https://%,$(UBOOT_PATCHES)) ; do \
|
||||
if test -d $$p ; then \
|
||||
$(APPLY_PATCHES) $(@D) $$p \*.patch || exit 1 ; \
|
||||
else \
|
||||
$(APPLY_PATCHES) $(@D) `dirname $$p` `basename $$p` || exit 1; \
|
||||
fi \
|
||||
done
|
||||
endef
|
||||
UBOOT_POST_PATCH_HOOKS += UBOOT_APPLY_LOCAL_PATCHES
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||
define UBOOT_CONFIGURE_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
||||
$(UBOOT_BOARD_NAME)_config
|
||||
endef
|
||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||
ifeq ($(BR2_TARGET_UBOOT_USE_DEFCONFIG),y)
|
||||
UBOOT_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_UBOOT_BOARD_DEFCONFIG))_defconfig
|
||||
else ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y)
|
||||
UBOOT_KCONFIG_FILE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE))
|
||||
endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
|
||||
UBOOT_KCONFIG_EDITORS = menuconfig xconfig gconfig nconfig
|
||||
UBOOT_KCONFIG_OPTS = $(UBOOT_MAKE_OPTS)
|
||||
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
|
||||
define UBOOT_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
||||
$(UBOOT_MAKE_TARGET)
|
||||
$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
|
||||
$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
|
||||
$(if $(BR2_TARGET_UBOOT_FORMAT_NAND),
|
||||
$(@D)/tools/mxsboot \
|
||||
-w $(BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE) \
|
||||
-o $(BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE) \
|
||||
-e $(BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE) \
|
||||
nand $(@D)/u-boot.sb $(@D)/u-boot.nand)
|
||||
endef
|
||||
|
||||
define UBOOT_BUILD_OMAP_IFT
|
||||
$(HOST_DIR)/usr/bin/gpsign -f $(@D)/u-boot.bin \
|
||||
-c $(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG))
|
||||
endef
|
||||
|
||||
define UBOOT_INSTALL_IMAGES_CMDS
|
||||
cp -dpf $(@D)/$(UBOOT_BIN) $(BINARIES_DIR)/
|
||||
$(if $(BR2_TARGET_UBOOT_FORMAT_NAND),
|
||||
cp -dpf $(@D)/$(UBOOT_MAKE_TARGET) $(BINARIES_DIR))
|
||||
$(if $(BR2_TARGET_UBOOT_SPL),
|
||||
cp -dpf $(@D)/$(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME)) $(BINARIES_DIR)/)
|
||||
$(if $(BR2_TARGET_UBOOT_ENVIMAGE),
|
||||
$(HOST_DIR)/usr/bin/mkenvimage -s $(BR2_TARGET_UBOOT_ENVIMAGE_SIZE) \
|
||||
$(if $(BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT),-r) \
|
||||
-o $(BINARIES_DIR)/uboot-env.bin $(BR2_TARGET_UBOOT_ENVIMAGE_SOURCE))
|
||||
endef
|
||||
|
||||
define UBOOT_INSTALL_OMAP_IFT_IMAGE
|
||||
cp -dpf $(@D)/$(UBOOT_BIN_IFT) $(BINARIES_DIR)/
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_OMAP_IFT),y)
|
||||
ifeq ($(BR_BUILDING),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG)),)
|
||||
$(error No gpsign config file. Check your BR2_TARGET_UBOOT_OMAP_IFT_CONFIG setting)
|
||||
endif
|
||||
ifeq ($(wildcard $(call qstrip,$(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG))),)
|
||||
$(error gpsign config file $(BR2_TARGET_UBOOT_OMAP_IFT_CONFIG) not found. Check your BR2_TARGET_UBOOT_OMAP_IFT_CONFIG setting)
|
||||
endif
|
||||
endif
|
||||
UBOOT_DEPENDENCIES += host-omap-u-boot-utils
|
||||
UBOOT_POST_BUILD_HOOKS += UBOOT_BUILD_OMAP_IFT
|
||||
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_INSTALL_OMAP_IFT_IMAGE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_ZYNQ_IMAGE),y)
|
||||
define UBOOT_GENERATE_ZYNQ_IMAGE
|
||||
$(HOST_DIR)/usr/bin/python2 $(HOST_DIR)/usr/bin/zynq-boot-bin.py \
|
||||
-u $(@D)/$(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME)) \
|
||||
-o $(BINARIES_DIR)/BOOT.BIN
|
||||
endef
|
||||
UBOOT_DEPENDENCIES += host-zynq-boot-bin
|
||||
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_GENERATE_ZYNQ_IMAGE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_ENVIMAGE),y)
|
||||
ifeq ($(BR_BUILDING),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_ENVIMAGE_SOURCE)),)
|
||||
$(error Please define a source file for Uboot environment (BR2_TARGET_UBOOT_ENVIMAGE_SOURCE setting))
|
||||
endif
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_ENVIMAGE_SIZE)),)
|
||||
$(error Please provide Uboot environment size (BR2_TARGET_UBOOT_ENVIMAGE_SIZE setting))
|
||||
endif
|
||||
endif
|
||||
UBOOT_DEPENDENCIES += host-uboot-tools
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT)$(BR_BUILDING),yy)
|
||||
|
||||
#
|
||||
# Check U-Boot board name (for legacy) or the defconfig/custom config
|
||||
# file options (for kconfig)
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||
ifeq ($(UBOOT_BOARD_NAME),)
|
||||
$(error No U-Boot board name set. Check your BR2_TARGET_UBOOT_BOARDNAME setting)
|
||||
endif # UBOOT_BOARD_NAME
|
||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||
ifeq ($(BR2_TARGET_UBOOT_USE_DEFCONFIG),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_BOARD_DEFCONFIG)),)
|
||||
$(error No board defconfig name specified, check your BR2_TARGET_UBOOT_DEFCONFIG setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_BOARD_DEFCONFIG
|
||||
endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
|
||||
ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE)),)
|
||||
$(error No board configuration file specified, check your BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
|
||||
endif # BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
||||
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
|
||||
#
|
||||
# Check custom version option
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_VERSION),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE)),)
|
||||
$(error No custom U-Boot version specified. Check your BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
|
||||
endif # BR2_TARGET_UBOOT_CUSTOM_VERSION
|
||||
|
||||
#
|
||||
# Check custom tarball option
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_TARBALL),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION)),)
|
||||
$(error No custom U-Boot tarball specified. Check your BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
|
||||
endif # BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
||||
|
||||
#
|
||||
# Check Git/Mercurial repo options
|
||||
#
|
||||
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT)$(BR2_TARGET_UBOOT_CUSTOM_HG),y)
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL)),)
|
||||
$(error No custom U-Boot repository URL specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_URL setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_URL
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION)),)
|
||||
$(error No custom U-Boot repository URL specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION setting)
|
||||
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_VERSION
|
||||
endif # BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
||||
|
||||
endif # BR2_TARGET_UBOOT && BR_BUILDING
|
||||
|
||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||
$(eval $(generic-package))
|
||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||
$(eval $(kconfig-package))
|
||||
endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
||||
15
deprecated/firmware/buildroot/boot/xloader/Config.in
Normal file
15
deprecated/firmware/buildroot/boot/xloader/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_TARGET_XLOADER
|
||||
bool "X-loader"
|
||||
depends on BR2_cortex_a8 || BR2_cortex_a9
|
||||
help
|
||||
The x-loader bootloader. It is mainly used on OMAP-based
|
||||
platforms.
|
||||
|
||||
if BR2_TARGET_XLOADER
|
||||
config BR2_TARGET_XLOADER_BOARDNAME
|
||||
string "x-loader board name"
|
||||
help
|
||||
One of x-loader supported boards to be built.
|
||||
This will be suffixed with _config to meet x-loader
|
||||
standard naming.
|
||||
endif
|
||||
32
deprecated/firmware/buildroot/boot/xloader/xloader.mk
Normal file
32
deprecated/firmware/buildroot/boot/xloader/xloader.mk
Normal file
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# x-loader
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XLOADER_VERSION = 6f3a26101303051e0f91b6213735b68ce804e94e
|
||||
XLOADER_SITE = git://gitorious.org/x-loader/x-loader.git
|
||||
XLOADER_BOARD_NAME = $(call qstrip,$(BR2_TARGET_XLOADER_BOARDNAME))
|
||||
|
||||
XLOADER_LICENSE = GPLv2+
|
||||
XLOADER_LICENSE_FILES = README
|
||||
|
||||
XLOADER_INSTALL_IMAGES = YES
|
||||
|
||||
define XLOADER_BUILD_CMDS
|
||||
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) $(XLOADER_BOARD_NAME)_config
|
||||
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all
|
||||
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) ift
|
||||
endef
|
||||
|
||||
define XLOADER_INSTALL_IMAGES_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/MLO $(BINARIES_DIR)/
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
ifeq ($(BR2_TARGET_XLOADER)$(BR_BUILDING),yy)
|
||||
ifeq ($(XLOADER_BOARD_NAME),)
|
||||
$(error NO x-loader board name set. Check your BR2_BOOT_XLOADER_BOARDNAME setting)
|
||||
endif
|
||||
endif
|
||||
Reference in New Issue
Block a user