Commit df13ec696ef61ed575950e4e071d220711afbe4e

Authored by Tom Rini
1 parent ba52426975

lpc32xx: work_92105: Rework Makefile

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 change things so that we
only build the right objects for SPL or non-SPL

Cc: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Signed-off-by: Tom Rini <trini@konsulko.com>

Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff

board/work-microwave/work_92105/Makefile
... ... @@ -5,7 +5,9 @@
5 5 # SPDX-License-Identifier: GPL-2.0+
6 6 #
7 7  
8   -obj-y := work_92105.o work_92105_display.o
9   -
10   -obj-$(CONFIG_SPL_BUILD) += work_92105_spl.o
  8 +ifdef CONFIG_SPL_BUILD
  9 +obj-y += work_92105_spl.o
  10 +else
  11 +obj-y += work_92105.o work_92105_display.o
  12 +endif