mvebu: ds414: Move cmd_syno into ds414 directory
PATCH 1/1 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.
--- board/Synology/common/Makefile | 7 -- board/Synology/common/cmd_syno.c | 227 -------------------------------------- board/Synology/ds414/Makefile | 5 +- board/Synology/ds414/cmd_syno.c | 227 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 231 insertions(+), 235 deletions(-) delete mode 100644 board/Synology/common/Makefile delete mode 100644 board/Synology/common/cmd_syno.c create mode 100644 board/Synology/ds414/cmd_syno.c
board/Synology/common/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (C) 2015 Phil Sutter <[email protected]> -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := cmd_syno.o
board/Synology/common/cmd_syno.c deleted +0 -227
227 lines not on this page · raw message
board/Synology/ds414/Makefile +4 -1
@@ -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
board/Synology/ds414/cmd_syno.c new file +227 -0
227 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/1 mvebu: ds414: Move cmd_syno into ds414 directory
Quoted 8 lines · Tom Rini
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.cfile (which claims to be ds414 specific anyways!) into the ds414 directory and only build it for non-SPL builds.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160316/25b80262/attachment.sig>