Gabe Black | 169c0df | 2013-10-08 18:24:10 -0700 | [diff] [blame] | 1 | ################################################################################ |
| 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 Black | 169c0df | 2013-10-08 18:24:10 -0700 | [diff] [blame] | 16 | ################################################################################ |
| 17 | |
| 18 | libgcc_files = ashldi3.S lib1funcs.S lshrdi3.S muldi3.S ucmpdi2.S uldivmod.S |
Stefan Reinauer | db03c22 | 2015-07-08 23:59:15 +0200 | [diff] [blame] | 19 | libgcc_files += udivmoddi4.c umoddi3.c |
Gabe Black | 169c0df | 2013-10-08 18:24:10 -0700 | [diff] [blame] | 20 | |
| 21 | ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARM),y) |
| 22 | bootblock-y += $(libgcc_files) |
| 23 | endif |
| 24 | |
Daisuke Nojiri | bcc1d42 | 2014-06-19 19:16:24 -0700 | [diff] [blame] | 25 | ifeq ($(CONFIG_ARCH_VERSTAGE_ARM),y) |
| 26 | verstage-y += $(libgcc_files) |
| 27 | endif |
| 28 | |
Gabe Black | 169c0df | 2013-10-08 18:24:10 -0700 | [diff] [blame] | 29 | ifeq ($(CONFIG_ARCH_ROMSTAGE_ARM),y) |
| 30 | romstage-y += $(libgcc_files) |
| 31 | endif |
| 32 | |
| 33 | ifeq ($(CONFIG_ARCH_RAMSTAGE_ARM),y) |
| 34 | ramstage-y += $(libgcc_files) |
| 35 | endif |