-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch by Steven Scholz, 16 Aug 2004:
- Introducing the concept of SoCs "./cpu/$(CPU)/$(SOC)" - creating subdirs for SoCs ./cpu/arm920t/imx and ./cpu/arm920t/s3c24x0 - moving SoC specific code out of cpu/arm920t/ into cpu/arm920t/$(SOC)/ - moving drivers/s3c24x0_i2c.c and drivers/serial_imx.c out of drivers/ into cpu/arm920t/$(SOC)/
- Loading branch information
wdenk
committed
Oct 9, 2004
1 parent
3e01d75
commit 1d9f410
Showing
20 changed files
with
150 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# | ||
# (C) Copyright 2000, 2001, 2002 | ||
# Wolfgang Denk, DENX Software Engineering, [email protected]. | ||
# | ||
# See file CREDITS for list of people who contributed to this | ||
# project. | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
# MA 02111-1307 USA | ||
# | ||
|
||
include $(TOPDIR)/config.mk | ||
|
||
LIB = lib$(SOC).a | ||
|
||
OBJS = generic.o interrupts.o serial.o speed.o | ||
|
||
all: .depend $(LIB) | ||
|
||
$(LIB): $(OBJS) | ||
$(AR) crv $@ $(OBJS) | ||
|
||
######################################################################### | ||
|
||
.depend: Makefile $(OBJS:.o=.c) | ||
$(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@ | ||
|
||
sinclude .depend | ||
|
||
######################################################################### |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# (C) Copyright 2000, 2001, 2002 | ||
# Wolfgang Denk, DENX Software Engineering, [email protected]. | ||
# | ||
# See file CREDITS for list of people who contributed to this | ||
# project. | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
# MA 02111-1307 USA | ||
# | ||
|
||
include $(TOPDIR)/config.mk | ||
|
||
LIB = lib$(SOC).a | ||
|
||
OBJS = i2c.o interrupts.o serial.o speed.o \ | ||
usb_ohci.o | ||
|
||
all: .depend $(LIB) | ||
|
||
$(LIB): $(OBJS) | ||
$(AR) crv $@ $(OBJS) | ||
|
||
######################################################################### | ||
|
||
.depend: Makefile $(OBJS:.o=.c) | ||
$(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@ | ||
|
||
sinclude .depend | ||
|
||
######################################################################### |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[By Steven Scholz <[email protected]>, 16 Aug 2004] | ||
|
||
Since the cpu/ directory gets clobbered with peripheral driver code I | ||
started cleaning up cpu/arm920t. | ||
|
||
I introduced the concept of Soc (system on a chip) into the ./cpu | ||
directory. That means that code that is cpu (i.e. core) specific | ||
resides in | ||
|
||
cpu/$(CPU)/ | ||
|
||
and code that is specific to some SoC (i.e. vendor specific | ||
peripherals around the core) is moved into | ||
|
||
cpu/$(CPU)/$(SOC)/ | ||
|
||
Thus a library/archive "cpu/$(CPU)/$(SOC)/lib$(SOC).a" will be build | ||
and linked. Examples will be | ||
|
||
cpu/arm920t/imx/ | ||
cpu/arm920t/s3c24x0 | ||
|
||
One can select an SoC by passing the name of it to ./mkconfig just | ||
like | ||
|
||
@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0 | ||
|
||
If there's no VENDOR field (like "mpl" in the above line) one has to | ||
pass NULL instead: | ||
|
||
@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Script to create header files and links to configure | ||
# U-Boot for a specific board. | ||
# | ||
# Parameters: Target Architecture CPU Board | ||
# Parameters: Target Architecture CPU Board [VENDOR] [SOC] | ||
# | ||
# (C) 2002 DENX Software Engineering, Wolfgang Denk <[email protected]> | ||
# | ||
|
@@ -19,7 +19,7 @@ while [ $# -gt 0 ] ; do | |
done | ||
|
||
[ $# -lt 4 ] && exit 1 | ||
[ $# -gt 5 ] && exit 1 | ||
[ $# -gt 6 ] && exit 1 | ||
|
||
echo "Configuring for $1 board..." | ||
|
||
|
@@ -41,11 +41,13 @@ fi | |
# | ||
# Create include file for Make | ||
# | ||
echo "ARCH = $2" > config.mk | ||
echo "CPU = $3" >> config.mk | ||
echo "BOARD = $4" >> config.mk | ||
echo "ARCH = $2" > config.mk | ||
echo "CPU = $3" >> config.mk | ||
echo "BOARD = $4" >> config.mk | ||
|
||
[ "$5" ] && echo "VENDOR = $5" >> config.mk | ||
[ "$5" ] && [ "$5" != "NULL" ] && echo "VENDOR = $5" >> config.mk | ||
|
||
[ "$6" ] && [ "$6" != "NULL" ] && echo "SOC = $6" >> config.mk | ||
|
||
# | ||
# Create board specific header file | ||
|