2012-12-14 22:05:21 +01:00
|
|
|
##
|
|
|
|
## This file is part of the libpayload project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2008 Advanced Micro Devices, Inc.
|
|
|
|
##
|
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted provided that the following conditions
|
|
|
|
## are met:
|
|
|
|
## 1. Redistributions of source code must retain the above copyright
|
|
|
|
## notice, this list of conditions and the following disclaimer.
|
|
|
|
## 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
## notice, this list of conditions and the following disclaimer in the
|
|
|
|
## documentation and/or other materials provided with the distribution.
|
|
|
|
## 3. The name of the author may not be used to endorse or promote products
|
|
|
|
## derived from this software without specific prior written permission.
|
|
|
|
##
|
|
|
|
## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
## ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
## SUCH DAMAGE.
|
|
|
|
##
|
|
|
|
|
2014-01-13 22:24:30 +01:00
|
|
|
CFLAGS += -mthumb -march=armv7-a
|
|
|
|
arm_asm_flags = -Wa,-mthumb -Wa,-mimplicit-it=always -Wa,-mno-warn-deprecated
|
2013-05-21 23:45:28 +02:00
|
|
|
|
2012-12-14 22:05:21 +01:00
|
|
|
head.o-y += head.S
|
2014-05-14 06:43:57 +02:00
|
|
|
libc-y += eabi_compat.c
|
2012-12-14 22:05:21 +01:00
|
|
|
libc-y += main.c sysinfo.c
|
|
|
|
libc-y += timer.c coreboot.c util.S
|
|
|
|
libc-y += virtual.c
|
2013-12-13 21:59:57 +01:00
|
|
|
libc-y += memcpy.S memset.S memmove.S
|
2013-03-04 05:52:05 +01:00
|
|
|
libc-y += exception_asm.S exception.c
|
2014-01-15 23:13:25 +01:00
|
|
|
libc-y += cache.c cpu.S
|
2013-08-09 13:27:35 +02:00
|
|
|
libcbfs-$(CONFIG_LP_CBFS) += dummy_media.c
|
2014-01-13 22:24:30 +01:00
|
|
|
|
|
|
|
# Add other classes here when you put assembly files into them!
|
|
|
|
head.o-S-ccopts += $(arm_asm_flags)
|
|
|
|
libc-S-ccopts += $(arm_asm_flags)
|