blob: cb91107e8e0b63245aa3b69433cda5035be7c0eb [file] [log] [blame]
Gabe Black169c0df2013-10-08 18:24:10 -07001################################################################################
2##
3## This file is part of the coreboot project.
4##
5## Copyright (C) 2013 The ChromiumOS Authors
6##
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.
10##
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.
15##
Gabe Black169c0df2013-10-08 18:24:10 -070016################################################################################
17
18libgcc_files = ashldi3.S lib1funcs.S lshrdi3.S muldi3.S ucmpdi2.S uldivmod.S
Stefan Reinauerdb03c222015-07-08 23:59:15 +020019libgcc_files += udivmoddi4.c umoddi3.c
Gabe Black169c0df2013-10-08 18:24:10 -070020
21ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARM),y)
22bootblock-y += $(libgcc_files)
23endif
24
Daisuke Nojiribcc1d422014-06-19 19:16:24 -070025ifeq ($(CONFIG_ARCH_VERSTAGE_ARM),y)
26verstage-y += $(libgcc_files)
27endif
28
Gabe Black169c0df2013-10-08 18:24:10 -070029ifeq ($(CONFIG_ARCH_ROMSTAGE_ARM),y)
30romstage-y += $(libgcc_files)
31endif
32
33ifeq ($(CONFIG_ARCH_RAMSTAGE_ARM),y)
34ramstage-y += $(libgcc_files)
35endif