|
@@ -10,33 +10,12 @@
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
#
|
|
|
|
|
|
-include $(TOPDIR)/config.mk
|
|
|
|
-
|
|
|
|
-LIB = $(obj)lib$(SOC).o
|
|
|
|
-
|
|
|
|
-COBJS-y := cpu.o timer.o
|
|
|
|
|
|
+obj-y := cpu.o timer.o
|
|
|
|
|
|
ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
|
ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
|
-SOBJS-y := lowlevel_init.o
|
|
|
|
|
|
+obj-y += lowlevel_init.o
|
|
endif
|
|
endif
|
|
|
|
|
|
ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
|
|
ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
|
|
-SOBJS-y += watchdog.o
|
|
|
|
|
|
+obj-y += watchdog.o
|
|
endif
|
|
endif
|
|
-
|
|
|
|
-SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
-OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
|
|
|
-
|
|
|
|
-all: $(obj).depend $(LIB)
|
|
|
|
-
|
|
|
|
-$(LIB): $(OBJS)
|
|
|
|
- $(call cmd_link_o_target, $(OBJS))
|
|
|
|
-
|
|
|
|
-#########################################################################
|
|
|
|
-
|
|
|
|
-# defines $(obj).depend target
|
|
|
|
-include $(SRCTREE)/rules.mk
|
|
|
|
-
|
|
|
|
-sinclude $(obj).depend
|
|
|
|
-
|
|
|
|
-#########################################################################
|
|
|