xref: /openbmc/linux/arch/arm/mach-at91/Makefile (revision 9d464cc5)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
29d041268SAndrew Victor#
39d041268SAndrew Victor# Makefile for the linux kernel.
49d041268SAndrew Victor#
59d041268SAndrew Victor
69d041268SAndrew Victor# CPU-specific support
7b53cdd03SAlexandre Belloniobj-$(CONFIG_SOC_AT91RM9200)	+= at91rm9200.o
8cac01723SNicolas Ferreobj-$(CONFIG_SOC_AT91SAM9)	+= at91sam9.o
9eb0df9b7SClaudiu Bezneaobj-$(CONFIG_SOC_SAM9X60)	+= sam9x60.o
10cac01723SNicolas Ferreobj-$(CONFIG_SOC_SAMA5)		+= sama5.o
11*9d464cc5SEugen Hristevobj-$(CONFIG_SOC_SAMA7)		+= sama7.o
122d4c44e9SSzemző Andrásobj-$(CONFIG_SOC_SAMV7)		+= samv7.o
138f4b4794SLudovic Desroches
14b7b272a8SAndrew Victor# Power Management
15b2f06274SAlexandre Belloniobj-$(CONFIG_ATMEL_PM)		+= pm.o pm_suspend.o
169d041268SAndrew Victor
17176a1b3dSAlexandre Belloniifeq ($(CONFIG_CPU_V7),y)
18176a1b3dSAlexandre BelloniAFLAGS_pm_suspend.o := -march=armv7-a
19176a1b3dSAlexandre Belloniendif
209d041268SAndrew Victorifeq ($(CONFIG_PM_DEBUG),y)
219d041268SAndrew VictorCFLAGS_pm.o += -DDEBUG
229d041268SAndrew Victorendif
2365cc1a59SAlexandre Belloni
249fac85a6SMasahiro Yamada$(obj)/pm_data-offsets.h: $(obj)/pm_data-offsets.s FORCE
2565cc1a59SAlexandre Belloni	$(call filechk,offsets,__PM_DATA_OFFSETS_H__)
2665cc1a59SAlexandre Belloni
279fac85a6SMasahiro Yamada$(obj)/pm_suspend.o: $(obj)/pm_data-offsets.h
282c667d77SMasahiro Yamada
292c667d77SMasahiro Yamadatargets += pm_data-offsets.s
309fac85a6SMasahiro Yamadaclean-files += pm_data-offsets.h
31