diff -drupN a/arch/arm/mach-sunxi/Makefile b/arch/arm/mach-sunxi/Makefile --- a/arch/arm/mach-sunxi/Makefile 2018-08-06 17:23:04.000000000 +0300 +++ b/arch/arm/mach-sunxi/Makefile 2022-06-12 05:28:14.000000000 +0300 @@ -1,2 +1,26 @@ -obj-$(CONFIG_ARCH_SUNXI) += sunxi.o -obj-$(CONFIG_SMP) += platsmp.o +obj-$(CONFIG_ARCH_SUNXI) += sunxi.o + +ifeq ($(CONFIG_ARCH_SUN8IW6),y) +#obj-y += sun8i-cci.o +#obj-y += sun8i-setup.o +#obj-y += irq-gic-sun8iw6.o +#obj-y += irq-gic-common-sun8iw6.o +#obj-y += sun8iw6-mcpm.o +ifdef CONFIG_SUNXI_GIC_ACCESS_SS +obj-y += sun8iw6-gic.o +endif +else +ifneq ($(CONFIG_ARM_PSCI), y) +ifeq ($(CONFIG_ARCH_SUN8IW17),y) +obj-y += sun8iw17-mcpm.o +obj-y += sun8i-cci.o +obj-y += sun8iw17-setup.o +else +obj-$(CONFIG_SMP) += headsmp.o platsmp.o +obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o + +endif + +endif +endif +