瀏覽代碼

mvebu: ds414: Move cmd_syno into ds414 directory

When we switch to including all linker lists in SPL it is important to
not include commands as that may lead to link errors due to other things
we have already discarded.  In this case as we don't have other common
code nor other Synology borads, move the cmd_syno.c file (which claims
to be ds414 specific anyways!) into the ds414 directory and only build
it for non-SPL builds.

Signed-off-by: Tom Rini <trini@konsulko.com>
Tom Rini 9 年之前
父節點
當前提交
d08fedf691
共有 3 個文件被更改,包括 4 次插入8 次删除
  1. 0 7
      board/Synology/common/Makefile
  2. 4 1
      board/Synology/ds414/Makefile
  3. 0 0
      board/Synology/ds414/cmd_syno.c

+ 0 - 7
board/Synology/common/Makefile

@@ -1,7 +0,0 @@
-#
-# Copyright (C) 2015 Phil Sutter <phil@nwl.cc>
-#
-# SPDX-License-Identifier:	GPL-2.0+
-#
-
-obj-y :=	cmd_syno.o

+ 4 - 1
board/Synology/ds414/Makefile

@@ -4,4 +4,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-y :=	ds414.o
+obj-y	+= ds414.o
+ifndef CONFIG_SPL_BUILD
+obj-y	+= cmd_syno.o
+endif

+ 0 - 0
board/Synology/common/cmd_syno.c → board/Synology/ds414/cmd_syno.c