Makefile (7843:fb777f10f3df) Makefile (8280:5dddde1126c2)
1# Copyright (c) 2011 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 20 unchanged lines hidden (view full) ---

29# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Ali Saidi
1# Copyright (c) 2011 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 20 unchanged lines hidden (view full) ---

29# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Ali Saidi
37# Prakash Ramrakhyani
37
38
38# Need to have CROSS_COMPILE set to /path/to/bin/arm-none-eabi-
39# arm-unknown-linux-gnu- might also work
40#
41#
42
39
43CROSS_COMPILE=arm-none-eabi-
40# Need to have CROSS_COMPILE set to /path/to/bin/arm-unknown-linux-gnu-
41# or have arm-unknown-linux-gnu in your path
44
42
43CROSS_COMPILE?=arm-none-linux-gnueabi-
44
45CC=$(CROSS_COMPILE)gcc
46CPP=$(CROSS_COMPILE)g++
47LD=$(CROSS_COMPILE)ld
48
45CC=$(CROSS_COMPILE)gcc
46CPP=$(CROSS_COMPILE)g++
47LD=$(CROSS_COMPILE)ld
48
49all: boot
49all: boot.arm
50
50
51boot.o: boot.S
52 $(CC) -mfloat-abi=softfp -march=armv7-a -mfpu=vfpv3 -mthumb -fno-builtin -nostdinc -o boot.o -c boot.S
51boot.o: simple.S
52 $(CC) -mfloat-abi=softfp -march=armv7-a -fno-builtin -nostdinc -o boot.o -c simple.S
53
54boot.arm: boot.o
53
54boot.arm: boot.o
55 $(LD) -o boot.arm -N -Ttext 0 boot.o -non_shared -static
55 $(LD) -o boot.arm -N -Ttext 0x80000000 boot.o -non_shared -static
56
57
58clean:
59 rm *.o boot.arm
60
56
57
58clean:
59 rm *.o boot.arm
60