diff options
| -rw-r--r-- | arch/nds32/cpu/n1213/Makefile | 4 | ||||
| -rw-r--r-- | arch/nds32/cpu/n1213/ag101/Makefile | 8 | ||||
| -rw-r--r-- | arch/nds32/cpu/n1213/ag102/Makefile | 8 | ||||
| -rw-r--r-- | arch/nds32/lib/Makefile | 9 | ||||
| -rw-r--r-- | board/AndesTech/adp-ag101/Makefile | 6 | ||||
| -rw-r--r-- | board/AndesTech/adp-ag101p/Makefile | 6 | ||||
| -rw-r--r-- | board/AndesTech/adp-ag102/Makefile | 4 | 
7 files changed, 24 insertions, 21 deletions
| diff --git a/arch/nds32/cpu/n1213/Makefile b/arch/nds32/cpu/n1213/Makefile index da155748e..7e8008253 100644 --- a/arch/nds32/cpu/n1213/Makefile +++ b/arch/nds32/cpu/n1213/Makefile @@ -31,8 +31,8 @@ LIB	= $(obj)lib$(CPU).o  START	= start.o -SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS)) +SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(COBJS-y) $(SOBJS-y))  START	:= $(addprefix $(obj),$(START))  all:	$(obj).depend $(START) $(LIB) diff --git a/arch/nds32/cpu/n1213/ag101/Makefile b/arch/nds32/cpu/n1213/ag101/Makefile index 8716c4e85..737a97218 100644 --- a/arch/nds32/cpu/n1213/ag101/Makefile +++ b/arch/nds32/cpu/n1213/ag101/Makefile @@ -33,15 +33,15 @@ LIB	= $(obj)lib$(SOC).o  COBJS-y	:= cpu.o timer.o  ifndef CONFIG_SKIP_LOWLEVEL_INIT -SOBJS	:= lowlevel_init.o +SOBJS-y	:= lowlevel_init.o  endif  ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG -SOBJS	+= watchdog.o +SOBJS-y	+= watchdog.o  endif -SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c) -OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS-y)) +SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))  all:	$(obj).depend $(LIB) diff --git a/arch/nds32/cpu/n1213/ag102/Makefile b/arch/nds32/cpu/n1213/ag102/Makefile index 8716c4e85..737a97218 100644 --- a/arch/nds32/cpu/n1213/ag102/Makefile +++ b/arch/nds32/cpu/n1213/ag102/Makefile @@ -33,15 +33,15 @@ LIB	= $(obj)lib$(SOC).o  COBJS-y	:= cpu.o timer.o  ifndef CONFIG_SKIP_LOWLEVEL_INIT -SOBJS	:= lowlevel_init.o +SOBJS-y	:= lowlevel_init.o  endif  ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG -SOBJS	+= watchdog.o +SOBJS-y	+= watchdog.o  endif -SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c) -OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS-y)) +SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))  all:	$(obj).depend $(LIB) diff --git a/arch/nds32/lib/Makefile b/arch/nds32/lib/Makefile index 705e1ff90..022b21a27 100644 --- a/arch/nds32/lib/Makefile +++ b/arch/nds32/lib/Makefile @@ -29,12 +29,15 @@ include $(TOPDIR)/config.mk  LIB	= $(obj)lib$(ARCH).o -OBJS	:= board.o cache.o interrupts.o +COBJS-y += board.o +COBJS-y += cache.o  COBJS-$(CONFIG_CMD_BOOTM) += bootm.o +COBJS-y += interrupts.o -all:	$(LIB) +SRCS  := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) -$(LIB):	$(OBJS) $(SOBJS) +$(LIB): $(obj).depend $(OBJS)  	$(call cmd_link_o_target, $(OBJS))  ######################################################################### diff --git a/board/AndesTech/adp-ag101/Makefile b/board/AndesTech/adp-ag101/Makefile index d55a799e4..867e1cf24 100644 --- a/board/AndesTech/adp-ag101/Makefile +++ b/board/AndesTech/adp-ag101/Makefile @@ -26,10 +26,10 @@ include $(TOPDIR)/config.mk  LIB	= $(obj)lib$(BOARD).o -COBJS	:= adp-ag101.o +COBJS-y	:= adp-ag101.o -SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS)) +SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(COBJS-y) $(SOBJS-y))  $(LIB):	$(OBJS)  	$(call cmd_link_o_target, $(OBJS)) diff --git a/board/AndesTech/adp-ag101p/Makefile b/board/AndesTech/adp-ag101p/Makefile index 03c3ff41e..5f513c828 100644 --- a/board/AndesTech/adp-ag101p/Makefile +++ b/board/AndesTech/adp-ag101p/Makefile @@ -26,10 +26,10 @@ include $(TOPDIR)/config.mk  LIB	= $(obj)lib$(BOARD).o -COBJS	:= adp-ag101p.o +COBJS-y	:= adp-ag101p.o -SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS)) +SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(COBJS-y) $(SOBJS-y))  $(LIB):	$(OBJS)  	$(call cmd_link_o_target, $(OBJS)) diff --git a/board/AndesTech/adp-ag102/Makefile b/board/AndesTech/adp-ag102/Makefile index 1cbf2d46d..44f117d36 100644 --- a/board/AndesTech/adp-ag102/Makefile +++ b/board/AndesTech/adp-ag102/Makefile @@ -27,8 +27,8 @@ LIB	= $(obj)lib$(BOARD).o  COBJS	:= adp-ag102.o -SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS)) +SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS	:= $(addprefix $(obj),$(COBJS-y) $(SOBJS-y))  $(LIB):	$(OBJS)  	$(call cmd_link_o_target, $(OBJS)) |