9
0
Fork 0

[SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2009-10-22 14:21:29 +02:00
parent e2a7b79cfc
commit b4521685bf
11 changed files with 27 additions and 29 deletions

View File

@ -1,7 +1,7 @@
CPPFLAGS += -fno-strict-aliasing
machine-y := sandbox
machine-y := sandbox
board-y := sandbox
lds-y := board/sandbox/u-boot.lds
@ -22,10 +22,13 @@ CFLAGS += -Dmalloc=u_boot_malloc \
-Dglob=u_boot_glob -Dglobfree=u_boot_globfree \
-Dioctl=u_boot_ioctl
ifeq ($(incdir-y),)
incdir-y := $(machine-y)
machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))
ifeq ($(KBUILD_SRC),)
CPPFLAGS += $(patsubst %,-I%include,$(machdirs))
else
CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
endif
INCDIR := arch-$(incdir-y)
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
-e s/arm.*/arm/ -e s/sa110/arm/ \
@ -50,24 +53,10 @@ endif
CPPFLAGS += -DELF_CLASS="$(ELF_CLASS)"
export ELF_FORMAT ELF_ARCH SUBARCH ELF_CLASS
# Update machine arch and proc symlinks if something which affects
# them changed. We use .arch to indicate when they were updated
# last, otherwise make uses the target directory mtime.
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-sandbox
$(Q)ln -fsn $(srctree)/include/asm-sandbox/$(INCDIR) include/asm-sandbox/arch
else
$(Q)ln -fsn $(INCDIR) include/asm-sandbox/arch
endif
@touch $@
archprepare: maketools
PHONY += maketools
maketools: include/asm-sandbox/.arch
cmd_uboot__ = $(CC) -o $@ -Wl,-T,$(uboot-lds) \
-Wl,--start-group $(uboot-common) -Wl,--end-group \
@ -76,4 +65,3 @@ cmd_uboot__ = $(CC) -o $@ -Wl,-T,$(uboot-lds) \
common-y += board/sandbox/ arch/sandbox/os/
CLEAN_FILES += board/sandbox/u-boot.lds
MRPROPER_FILES += include/asm-sandbox/arch

View File

@ -1,4 +1,14 @@
CPPFLAGS := -Iinclude/asm/arch -P
machine-y := sandbox
machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))
ifeq ($(KBUILD_SRC),)
CPPFLAGS := $(patsubst %,-I%include,$(machdirs))
else
CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))
endif
CPPFLAGS += -P
CFLAGS := -Wall
NOSTDINC_FLAGS :=

View File

@ -47,8 +47,8 @@
/*
* ...except the ones needed to connect with U-Boot
*/
#include <linux.h>
#include <hostfile.h>
#include <mach/linux.h>
#include <mach/hostfile.h>
static struct termios term_orig, term_vi;
static char erase_char; /* the users erase character */

View File

@ -23,7 +23,7 @@
#include <common.h>
#include <driver.h>
#include <malloc.h>
#include <asm/arch/linux.h>
#include <mach/linux.h>
#include <init.h>
#include <errno.h>

View File

@ -23,7 +23,7 @@
#include <common.h>
#include <init.h>
#include <clock.h>
#include <asm/arch/linux.h>
#include <mach/linux.h>
static uint64_t linux_clocksource_read(void)
{

View File

@ -22,7 +22,7 @@
#include <common.h>
#include <driver.h>
#include <asm/arch/linux.h>
#include <mach/linux.h>
#include <xfuncs.h>
int u_boot_register_console(char *name, int stdinfd, int stdoutfd)

View File

@ -23,10 +23,10 @@
#include <common.h>
#include <driver.h>
#include <malloc.h>
#include <asm/arch/linux.h>
#include <mach/linux.h>
#include <init.h>
#include <errno.h>
#include <asm/arch/hostfile.h>
#include <mach/hostfile.h>
#include <xfuncs.h>
struct hf_priv {

View File

@ -25,7 +25,7 @@
#include <malloc.h>
#include <net.h>
#include <init.h>
#include <asm/arch/linux.h>
#include <mach/linux.h>
struct tap_priv {
int fd;

View File

@ -23,7 +23,7 @@
#include <common.h>
#include <driver.h>
#include <init.h>
#include <asm/arch/linux.h>
#include <mach/linux.h>
#include <malloc.h>
#include <console.h>
#include <xfuncs.h>