1 ################################################################################
3 ## This file is part of the coreboot project.
5 ## Copyright (C) 2013 The ChromiumOS Authors
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; version 2 of the License.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ################################################################################
18 libgcc_files = ashldi3.S lib1funcs.S lshrdi3.S muldi3.S ucmpdi2.S uldivmod.S
19 libgcc_files += udivmoddi4.c umoddi3.c
21 ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARM),y)
22 bootblock-y += $(libgcc_files)
25 ifeq ($(CONFIG_ARCH_VERSTAGE_ARM),y)
26 verstage-y += $(libgcc_files)
29 ifeq ($(CONFIG_ARCH_ROMSTAGE_ARM),y)
30 romstage-y += $(libgcc_files)
33 ifeq ($(CONFIG_ARCH_RAMSTAGE_ARM),y)
34 ramstage-y += $(libgcc_files)