Commit 7c8278a866122ef6c1201b94cd602f98cc649a2f

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 9e4140329e

kbuild: add dummy obj-y to create built-in.o

We are going to switch over to Kbuild in upcoming commits.

Each makefile must have non-empty obj- or obj-y
to generate built-in.o on Kbuild.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 8 changed files with 25 additions and 5 deletions Side-by-side Diff

arch/arm/cpu/armv7/tegra114/Makefile
... ... @@ -17,5 +17,6 @@
17 17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18 #
19 19  
20   -obj- :=
  20 +# necessary to create built-in.o
  21 +obj- := __dummy__.o
arch/arm/cpu/armv7/tegra30/Makefile
... ... @@ -17,5 +17,6 @@
17 17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18 #
19 19  
20   -obj- :=
  20 +# necessary to create built-in.o
  21 +obj- := __dummy__.o
arch/nds32/cpu/n1213/Makefile
... ... @@ -9,5 +9,8 @@
9 9 # SPDX-License-Identifier: GPL-2.0+
10 10 #
11 11  
  12 +# necessary to create built-in.o
  13 +obj- := __dummy__.o
  14 +
12 15 extra-y = start.o
board/freescale/common/Makefile
... ... @@ -13,7 +13,10 @@
13 13 endif
14 14 endif
15 15  
16   -ifndef MINIMAL
  16 +ifdef MINIMAL
  17 +# necessary to create built-in.o
  18 +obj- := __dummy__.o
  19 +else
17 20 obj-$(CONFIG_FSL_CADMUS) += cadmus.o
18 21 obj-$(CONFIG_FSL_VIA) += cds_via.o
19 22 obj-$(CONFIG_FMAN_ENET) += fman.o
board/samsung/origen/Makefile
... ... @@ -5,6 +5,9 @@
5 5 #
6 6  
7 7 ifdef CONFIG_SPL_BUILD
  8 +# necessary to create built-in.o
  9 +obj- := __dummy__.o
  10 +
8 11 hostprogs-y := tools/mkorigenspl
9 12 always := $(hostprogs-y)
10 13  
board/samsung/smdkv310/Makefile
... ... @@ -5,6 +5,9 @@
5 5 #
6 6  
7 7 ifdef CONFIG_SPL_BUILD
  8 +# necessary to create built-in.o
  9 +obj- := __dummy__.o
  10 +
8 11 hostprogs-y := tools/mksmdkv310spl
9 12 always := $(hostprogs-y)
10 13 else
board/spear/common/Makefile
... ... @@ -5,7 +5,10 @@
5 5 # SPDX-License-Identifier: GPL-2.0+
6 6 #
7 7  
8   -ifndef CONFIG_SPL_BUILD
  8 +ifdef CONFIG_SPL_BUILD
  9 +# necessary to create built-in.o
  10 +obj- := __dummy__.o
  11 +else
9 12 obj-y := spr_misc.o
10 13 obj-y += spr_lowlevel_init.o
11 14 endif
board/spear/x600/Makefile
... ... @@ -5,7 +5,10 @@
5 5 # SPDX-License-Identifier: GPL-2.0+
6 6 #
7 7  
8   -ifndef CONFIG_SPL_BUILD
  8 +ifdef CONFIG_SPL_BUILD
  9 +# necessary to create built-in.o
  10 +obj- := __dummy__.o
  11 +else
9 12 obj-y := fpga.o x600.o
10 13 endif