xref: /openbmc/linux/arch/arm/mach-at91/Makefile (revision 9fac85a6)
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
9cac01723SNicolas Ferreobj-$(CONFIG_SOC_SAMA5)		+= sama5.o
102d4c44e9SSzemző Andrásobj-$(CONFIG_SOC_SAMV7)		+= samv7.o
118f4b4794SLudovic Desroches
12b7b272a8SAndrew Victor# Power Management
13b2f06274SAlexandre Belloniobj-$(CONFIG_ATMEL_PM)		+= pm.o pm_suspend.o
149d041268SAndrew Victor
15176a1b3dSAlexandre Belloniifeq ($(CONFIG_CPU_V7),y)
16176a1b3dSAlexandre BelloniAFLAGS_pm_suspend.o := -march=armv7-a
17176a1b3dSAlexandre Belloniendif
189d041268SAndrew Victorifeq ($(CONFIG_PM_DEBUG),y)
199d041268SAndrew VictorCFLAGS_pm.o += -DDEBUG
209d041268SAndrew Victorendif
2165cc1a59SAlexandre Belloni
229fac85a6SMasahiro Yamada$(obj)/pm_data-offsets.h: $(obj)/pm_data-offsets.s FORCE
2365cc1a59SAlexandre Belloni	$(call filechk,offsets,__PM_DATA_OFFSETS_H__)
2465cc1a59SAlexandre Belloni
259fac85a6SMasahiro Yamada$(obj)/pm_suspend.o: $(obj)/pm_data-offsets.h
262c667d77SMasahiro Yamada
272c667d77SMasahiro Yamadatargets += pm_data-offsets.s
289fac85a6SMasahiro Yamadaclean-files += pm_data-offsets.h
29