rename linux target to sandbox
This commit is contained in:
parent
d757720766
commit
9994dfb818
|
@ -83,17 +83,17 @@ kernel.
|
|||
For the examples below, we use the User Mode U-Boot implementation, which
|
||||
is a port of U-Boot to the Linux userspace. This makes it possible to
|
||||
test drive the code without having real hardware. So for this test
|
||||
scenario, ARCH=linux is the valid architecture selection. This currently
|
||||
scenario, ARCH=sandbox is the valid architecture selection. This currently
|
||||
only works on ia32 hosts and partly on x86-64.
|
||||
|
||||
Selection of the architecture and the cross compiler can be done in two
|
||||
ways. You can either specify it using the environment variables ARCH
|
||||
and CROSS_COMPILE, or you can create the soft links cross_arch and
|
||||
cross_compile pointing to your architecture and compiler. For ARCH=linux
|
||||
cross_compile pointing to your architecture and compiler. For ARCH=sandbox
|
||||
we do not need a cross compiler so it is sufficient to specify the
|
||||
architecture:
|
||||
|
||||
# ln -s linux cross_arch
|
||||
# ln -s sandbox cross_arch
|
||||
|
||||
In order to configure the various aspects of U-Boot, start the U-Boot
|
||||
configuration system:
|
||||
|
@ -103,7 +103,7 @@ configuration system:
|
|||
This command starts a menu box and lets you select all the different
|
||||
options available for your architecture. Once the configuration was
|
||||
finished (you can simulate this by using the standard demo config file
|
||||
with 'make linux_defconfig'), there is a .config file in the toplevel
|
||||
with 'make sandbox_defconfig'), there is a .config file in the toplevel
|
||||
directory of the sourcode.
|
||||
|
||||
Once U-Boot is configured, we can start the compilation
|
||||
|
|
|
@ -4,10 +4,10 @@ CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall \
|
|||
-fno-strict-aliasing
|
||||
|
||||
|
||||
machine-y := linux
|
||||
machine-y := sandbox
|
||||
|
||||
BOARD:= arch/linux/lib
|
||||
board-y := linux
|
||||
BOARD:= arch/sandbox/lib
|
||||
board-y := sandbox
|
||||
|
||||
TEXT_BASE = $(CONFIG_TEXT_BASE)
|
||||
|
||||
|
@ -49,25 +49,25 @@ export ELF_FORMAT ELF_ARCH SUBARCH
|
|||
# them changed. We use .arch to indicate when they were updated
|
||||
# last, otherwise make uses the target directory mtime.
|
||||
|
||||
include/asm-linux/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf
|
||||
@echo ' SYMLINK include/asm-linux/arch -> include/asm-linux/$(INCDIR)'
|
||||
include/asm-sandbox/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf
|
||||
@echo ' SYMLINK include/asm-sandbox/arch -> include/asm-sandbox/$(INCDIR)'
|
||||
ifneq ($(KBUILD_SRC),)
|
||||
$(Q)mkdir -p include/asm-linux
|
||||
$(Q)ln -fsn $(srctree)/include/asm-linux/$(INCDIR) include/asm-linux/arch
|
||||
$(Q)mkdir -p include/asm-sandbox
|
||||
$(Q)ln -fsn $(srctree)/include/asm-sandbox/$(INCDIR) include/asm-sandbox/arch
|
||||
else
|
||||
$(Q)ln -fsn $(INCDIR) include/asm-linux/arch
|
||||
$(Q)ln -fsn $(INCDIR) include/asm-sandbox/arch
|
||||
endif
|
||||
@touch $@
|
||||
|
||||
archprepare: maketools
|
||||
|
||||
PHONY += maketools
|
||||
maketools: include/asm-linux/.arch
|
||||
maketools: include/asm-sandbox/.arch
|
||||
|
||||
cmd_uboot__ = $(CC) -o $@ -Wl,-T,$(uboot-lds) \
|
||||
-Wl,--start-group $(uboot-common) -Wl,--end-group \
|
||||
-lrt -Wl,-rpath,/lib -lrt -lpthread
|
||||
|
||||
common-y += arch/linux/lib/ arch/linux/board/
|
||||
common-y += arch/sandbox/lib/ arch/sandbox/board/
|
||||
|
||||
MRPROPER_FILES += include/asm-linux/arch
|
||||
MRPROPER_FILES += include/asm-sandbox/arch
|
||||
|
|
|
@ -1,129 +0,0 @@
|
|||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# U-Boot version: 2.0.0-trunk
|
||||
# Fri Jun 29 10:30:11 2007
|
||||
#
|
||||
CONFIG_LINUX=y
|
||||
CONFIG_ZLIB=y
|
||||
CONFIG_GREGORIAN_CALENDER=y
|
||||
|
||||
#
|
||||
# General Settings
|
||||
#
|
||||
CONFIG_PROMPT="uboot> "
|
||||
CONFIG_BAUDRATE=115200
|
||||
CONFIG_CMDLINE_EDITING=y
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_LONGHELP is not set
|
||||
CONFIG_CBSIZE=1024
|
||||
CONFIG_MAXARGS=16
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_PROMPT_HUSH_PS2="> "
|
||||
CONFIG_ZERO_BOOTDELAY_CHECK=y
|
||||
CONFIG_DYNAMIC_CRC_TABLE=y
|
||||
CONFIG_ERRNO_MESSAGES=y
|
||||
CONFIG_TIMESTAMP=y
|
||||
CONFIG_CONSOLE_ACTIVATE_FIRST=y
|
||||
# CONFIG_OF_FLAT_TREE is not set
|
||||
|
||||
#
|
||||
# Commands
|
||||
#
|
||||
CONFIG_CMD_HELP=y
|
||||
|
||||
#
|
||||
# scripting
|
||||
#
|
||||
# CONFIG_CMD_AUTOSCRIPT is not set
|
||||
CONFIG_CMD_EDIT=y
|
||||
CONFIG_CMD_EXEC=y
|
||||
CONFIG_CMD_SLEEP=y
|
||||
CONFIG_CMD_ENVIRONMENT=y
|
||||
CONFIG_CMD_ENV=y
|
||||
|
||||
#
|
||||
# console
|
||||
#
|
||||
# CONFIG_CMD_CLEAR is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
CONFIG_CMD_ECHO=y
|
||||
# CONFIG_CMD_SPLASH is not set
|
||||
|
||||
#
|
||||
# i2c
|
||||
#
|
||||
# CONFIG_CMD_I2C is not set
|
||||
|
||||
#
|
||||
# memory
|
||||
#
|
||||
# CONFIG_CMD_LOADB is not set
|
||||
# CONFIG_CMD_LOADS is not set
|
||||
# CONFIG_CMD_MEMINFO is not set
|
||||
CONFIG_CMD_MEMORY=y
|
||||
# CONFIG_CMD_MTEST is not set
|
||||
|
||||
#
|
||||
# network
|
||||
#
|
||||
# CONFIG_CMD_MII is not set
|
||||
|
||||
#
|
||||
# flash
|
||||
#
|
||||
CONFIG_CMD_FLASH=y
|
||||
|
||||
#
|
||||
# booting
|
||||
#
|
||||
# CONFIG_CMD_BOOTM is not set
|
||||
|
||||
#
|
||||
# Debugging
|
||||
#
|
||||
CONFIG_NET=y
|
||||
CONFIG_NET_BOOTP=y
|
||||
CONFIG_NET_DHCP=y
|
||||
# CONFIG_NET_RARP is not set
|
||||
# CONFIG_NET_SNTP is not set
|
||||
# CONFIG_NET_NFS is not set
|
||||
CONFIG_NET_PING=y
|
||||
CONFIG_NET_TFTP=y
|
||||
|
||||
#
|
||||
# Drivers
|
||||
#
|
||||
|
||||
#
|
||||
# serial drivers
|
||||
#
|
||||
CONFIG_DRIVER_SERIAL_LINUX_COMSOLE=y
|
||||
|
||||
#
|
||||
# Network drivers
|
||||
#
|
||||
CONFIG_DRIVER_NET_TAP=y
|
||||
|
||||
#
|
||||
# video drivers
|
||||
#
|
||||
# CONFIG_DRIVER_VIDEO_S1D13706 is not set
|
||||
|
||||
#
|
||||
# I2C drivers
|
||||
#
|
||||
|
||||
#
|
||||
# USB host support
|
||||
#
|
||||
|
||||
#
|
||||
# flash drivers
|
||||
#
|
||||
# CONFIG_DRIVER_CFI is not set
|
||||
# CONFIG_DRIVER_CFI_NEW is not set
|
||||
|
||||
#
|
||||
# Filesystem support
|
||||
#
|
||||
CONFIG_FS_CRAMFS=y
|
Loading…
Reference in New Issue