Makefile: Allow for board directories to not have a Makefile
Subsystems (7)
PATCH 1/3 Makefile: Allow for board directories to not have a Makefile
It is entirely possible at this point to have platforms in U-Boot that do not have board-specific C code (just Kconfig or environment) and so make it optional to have to descend in to and then build in the board directory.
--- Makefile | 2 +- scripts/Makefile.spl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Makefile +1 -1
@@ -877,7 +877,7 @@ libs-$(CONFIG_UT_ENV) += test/env/ libs-$(CONFIG_UT_OPTEE) += test/optee/ libs-$(CONFIG_UT_OVERLAY) += test/overlay/ -libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/) +libs-y += $(if $(wildcard $(srctree)/board/$(BOARDDIR)/Makefile),board/$(BOARDDIR)/) libs-y := $(sort $(libs-y))
scripts/Makefile.spl +1 -1
@@ -96,7 +96,7 @@ c_flags := $(KBUILD_CFLAGS) $(cpp_flags) HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n) -libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/) +libs-y += $(if $(wildcard $(srctree)/board/$(BOARDDIR)/Makefile),board/$(BOARDDIR)/) libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/ ifeq ($(CONFIG_TPL_BUILD),y)
Signature · 1 line
2.34.1
PATCH 2/3 board: Remove essentially empty board files and Makefiles
As part of reviewing a new platform, Daniel Schwierzeck noted that we can have an empty Makefile in the board directory and don't need an empty board.c file as well. Further with further cleanup in the Makefile we can now omit the Makefile entirely. Remove a number of now unnecessary board.c and Makefiles.
--- board/altera/arria10-socdk/Makefile | 5 ----- board/altera/arria10-socdk/socfpga.c | 6 ------ board/altera/arria5-socdk/Makefile | 7 ------- board/altera/arria5-socdk/socfpga.c | 5 ----- board/altera/cyclone5-socdk/Makefile | 7 ------- board/altera/cyclone5-socdk/socfpga.c | 5 ----- board/altera/stratix10-socdk/Makefile | 7 ------- board/altera/stratix10-socdk/socfpga.c | 7 ------- board/aries/mcvevk/Makefile | 7 ------- board/aries/mcvevk/socfpga.c | 5 ----- board/aspeed/evb_ast2500/Makefile | 1 - board/aspeed/evb_ast2500/evb_ast2500.c | 5 ----- board/aspeed/evb_ast2600/Makefile | 1 - board/aspeed/evb_ast2600/evb_ast2600.c | 5 ----- board/broadcom/bcm968380gerg/Makefile | 3 --- board/broadcom/bcm968380gerg/bcm968380gerg.c | 6 ------ board/broadcom/bcm968380gerg/board.c | 6 ------ board/comtrend/ar5315u/Makefile | 3 --- board/comtrend/ar5315u/ar-5315u.c | 6 ------ board/comtrend/ar5387un/Makefile | 3 --- board/comtrend/ar5387un/ar-5387un.c | 6 ------ board/comtrend/ct5361/Makefile | 3 --- board/comtrend/ct5361/ct-5361.c | 6 ------ board/comtrend/vr3032u/Makefile | 3 --- board/comtrend/vr3032u/vr-3032u.c | 6 ------ board/comtrend/wap5813n/Makefile | 3 --- board/comtrend/wap5813n/wap-5813n.c | 6 ------ board/devboards/dbm-soc1/Makefile | 5 ----- board/devboards/dbm-soc1/socfpga.c | 5 ----- board/ebv/socrates/Makefile | 7 ------- board/ebv/socrates/socfpga.c | 5 ----- board/edgeble/neural-compute-module-2/Makefile | 7 ------- board/edgeble/neural-compute-module-2/neu2.c | 4 ---- board/edgeble/neural-compute-module-6/Makefile | 7 ------- board/edgeble/neural-compute-module-6/neu6.c | 4 ---- board/efi/efi-x86_app/Makefile | 5 ----- board/efi/efi-x86_app/app.c | 6 ------ board/emulation/qemu-x86/Makefile | 5 ----- board/emulation/qemu-x86/qemu-x86.c | 0 board/engicam/px30_core/Makefile | 7 ------- board/engicam/px30_core/px30_core.c | 4 ---- board/geekbuying/geekbox/Makefile | 5 ----- board/geekbuying/geekbox/geekbox.c | 6 ------ board/google/chromebook_link/Makefile | 13 ------------- board/google/chromebook_link/link.c | 6 ------ board/google/chromebook_samus/Makefile | 5 ----- board/google/chromebook_samus/samus.c | 6 ------ board/google/chromebox_panther/Makefile | 5 ----- board/google/chromebox_panther/panther.c | 6 ------ board/hardkernel/odroid_m1/Makefile | 3 --- board/hardkernel/odroid_m1/odroid_m1.c | 1 - board/huawei/hg556a/Makefile | 3 --- board/huawei/hg556a/hg556a.c | 6 ------ board/intel/agilex-socdk/Makefile | 7 ------- board/intel/agilex-socdk/socfpga.c | 7 ------- board/intel/bayleybay/Makefile | 1 - board/intel/bayleybay/bayleybay.c | 7 ------- board/intel/n5x-socdk/Makefile | 7 ------- board/intel/n5x-socdk/socfpga.c | 7 ------- board/is1/Makefile | 5 ----- board/is1/socfpga.c | 4 ---- board/mediatek/mt7620/Makefile | 3 --- board/mediatek/mt7620/board.c | 6 ------ board/mediatek/mt7621/Makefile | 3 --- board/mediatek/mt7621/board.c | 6 ------ board/mediatek/mt7628/Makefile | 3 --- board/mediatek/mt7628/board.c | 8 -------- board/mqmaker/miqi_rk3288/Makefile | 7 ------- board/mqmaker/miqi_rk3288/miqi-rk3288.c | 4 ---- board/netgear/cg3100d/Makefile | 3 --- board/netgear/cg3100d/cg3100d.c | 6 ------ board/pine64/quartz64_rk3566/Makefile | 3 --- board/pine64/quartz64_rk3566/quartz64-rk3566.c | 1 - board/qualcomm/dragonboard845c/Makefile | 9 --------- board/qualcomm/dragonboard845c/dragonboard845c.c | 9 --------- board/radxa/rock/Makefile | 7 ------- board/radxa/rock/rock.c | 6 ------ board/radxa/rock2/Makefile | 7 ------- board/radxa/rock2/rock2.c | 6 ------ board/rikomagic/mk808/Makefile | 3 --- board/rikomagic/mk808/mk808.c | 3 --- board/rockchip/evb_px30/Makefile | 7 ------- board/rockchip/evb_px30/evb_px30.c | 4 ---- board/rockchip/evb_px5/Makefile | 5 ----- board/rockchip/evb_px5/evb-px5.c | 4 ---- board/rockchip/evb_rk3128/Makefile | 5 ----- board/rockchip/evb_rk3128/evk-rk3128.c | 0 board/rockchip/evb_rk3229/Makefile | 7 ------- board/rockchip/evb_rk3229/evb_rk3229.c | 9 --------- board/rockchip/evb_rk3288/Makefile | 7 ------- board/rockchip/evb_rk3288/evb-rk3288.c | 4 ---- board/rockchip/evb_rk3328/Makefile | 7 ------- board/rockchip/evb_rk3328/evb-rk3328.c | 4 ---- board/rockchip/evb_rk3568/Makefile | 7 ------- board/rockchip/evb_rk3568/evb_rk3568.c | 4 ---- board/rockchip/sheep_rk3368/Makefile | 5 ----- board/rockchip/sheep_rk3368/sheep_rk3368.c | 4 ---- board/sagem/f@st1704/Makefile | 3 --- board/sagem/f@st1704/[email protected] | 6 ------ board/samsung/starqltechn/Makefile | 9 --------- board/samsung/starqltechn/starqltechn.c | 10 ---------- board/sfr/nb4_ser/Makefile | 3 --- board/sfr/nb4_ser/nb4-ser.c | 6 ------ board/terasic/de0-nano-soc/Makefile | 7 ------- board/terasic/de0-nano-soc/socfpga.c | 5 ----- board/terasic/de10-nano/Makefile | 6 ------ board/terasic/de10-nano/socfpga.c | 5 ----- board/terasic/de10-standard/Makefile | 6 ------ board/terasic/de10-standard/socfpga.c | 5 ----- board/terasic/sockit/Makefile | 7 ------- board/terasic/sockit/socfpga.c | 5 ----- board/theobroma-systems/lion_rk3368/Makefile | 5 ----- board/theobroma-systems/lion_rk3368/lion_rk3368.c | 4 ---- board/vocore/vocore2/Makefile | 3 --- board/vocore/vocore2/board.c | 6 ------ 115 files changed, 601 deletions(-) delete mode 100644 board/altera/arria10-socdk/Makefile delete mode 100644 board/altera/arria10-socdk/socfpga.c delete mode 100644 board/altera/arria5-socdk/Makefile delete mode 100644 board/altera/arria5-socdk/socfpga.c delete mode 100644 board/altera/cyclone5-socdk/Makefile delete mode 100644 board/altera/cyclone5-socdk/socfpga.c delete mode 100644 board/altera/stratix10-socdk/Makefile delete mode 100644 board/altera/stratix10-socdk/socfpga.c delete mode 100644 board/aries/mcvevk/Makefile delete mode 100644 board/aries/mcvevk/socfpga.c delete mode 100644 board/aspeed/evb_ast2500/Makefile delete mode 100644 board/aspeed/evb_ast2500/evb_ast2500.c delete mode 100644 board/aspeed/evb_ast2600/Makefile delete mode 100644 board/aspeed/evb_ast2600/evb_ast2600.c delete mode 100644 board/broadcom/bcm968380gerg/Makefile delete mode 100644 board/broadcom/bcm968380gerg/bcm968380gerg.c delete mode 100644 board/broadcom/bcm968380gerg/board.c delete mode 100644 board/comtrend/ar5315u/Makefile delete mode 100644 board/comtrend/ar5315u/ar-5315u.c delete mode 100644 board/comtrend/ar5387un/Makefile delete mode 100644 board/comtrend/ar5387un/ar-5387un.c delete mode 100644 board/comtrend/ct5361/Makefile delete mode 100644 board/comtrend/ct5361/ct-5361.c delete mode 100644 board/comtrend/vr3032u/Makefile delete mode 100644 board/comtrend/vr3032u/vr-3032u.c delete mode 100644 board/comtrend/wap5813n/Makefile delete mode 100644 board/comtrend/wap5813n/wap-5813n.c delete mode 100644 board/devboards/dbm-soc1/Makefile delete mode 100644 board/devboards/dbm-soc1/socfpga.c delete mode 100644 board/ebv/socrates/Makefile delete mode 100644 board/ebv/socrates/socfpga.c delete mode 100644 board/edgeble/neural-compute-module-2/Makefile delete mode 100644 board/edgeble/neural-compute-module-2/neu2.c delete mode 100644 board/edgeble/neural-compute-module-6/Makefile delete mode 100644 board/edgeble/neural-compute-module-6/neu6.c delete mode 100644 board/efi/efi-x86_app/Makefile delete mode 100644 board/efi/efi-x86_app/app.c delete mode 100644 board/emulation/qemu-x86/Makefile delete mode 100644 board/emulation/qemu-x86/qemu-x86.c delete mode 100644 board/engicam/px30_core/Makefile delete mode 100644 board/engicam/px30_core/px30_core.c delete mode 100644 board/geekbuying/geekbox/Makefile delete mode 100644 board/geekbuying/geekbox/geekbox.c delete mode 100644 board/google/chromebook_link/Makefile delete mode 100644 board/google/chromebook_link/link.c delete mode 100644 board/google/chromebook_samus/Makefile delete mode 100644 board/google/chromebook_samus/samus.c delete mode 100644 board/google/chromebox_panther/Makefile delete mode 100644 board/google/chromebox_panther/panther.c delete mode 100644 board/hardkernel/odroid_m1/Makefile delete mode 100644 board/hardkernel/odroid_m1/odroid_m1.c delete mode 100644 board/huawei/hg556a/Makefile delete mode 100644 board/huawei/hg556a/hg556a.c delete mode 100644 board/intel/agilex-socdk/Makefile delete mode 100644 board/intel/agilex-socdk/socfpga.c delete mode 100644 board/intel/bayleybay/bayleybay.c delete mode 100644 board/intel/n5x-socdk/Makefile delete mode 100644 board/intel/n5x-socdk/socfpga.c delete mode 100644 board/is1/Makefile delete mode 100644 board/is1/socfpga.c delete mode 100644 board/mediatek/mt7620/Makefile delete mode 100644 board/mediatek/mt7620/board.c delete mode 100644 board/mediatek/mt7621/Makefile delete mode 100644 board/mediatek/mt7621/board.c delete mode 100644 board/mediatek/mt7628/Makefile delete mode 100644 board/mediatek/mt7628/board.c delete mode 100644 board/mqmaker/miqi_rk3288/Makefile delete mode 100644 board/mqmaker/miqi_rk3288/miqi-rk3288.c delete mode 100644 board/netgear/cg3100d/Makefile delete mode 100644 board/netgear/cg3100d/cg3100d.c delete mode 100644 board/pine64/quartz64_rk3566/Makefile delete mode 100644 board/pine64/quartz64_rk3566/quartz64-rk3566.c delete mode 100644 board/qualcomm/dragonboard845c/Makefile delete mode 100644 board/qualcomm/dragonboard845c/dragonboard845c.c delete mode 100644 board/radxa/rock/Makefile delete mode 100644 board/radxa/rock/rock.c delete mode 100644 board/radxa/rock2/Makefile delete mode 100644 board/radxa/rock2/rock2.c delete mode 100644 board/rikomagic/mk808/Makefile delete mode 100644 board/rikomagic/mk808/mk808.c delete mode 100644 board/rockchip/evb_px30/Makefile delete mode 100644 board/rockchip/evb_px30/evb_px30.c delete mode 100644 board/rockchip/evb_px5/Makefile delete mode 100644 board/rockchip/evb_px5/evb-px5.c delete mode 100644 board/rockchip/evb_rk3128/Makefile delete mode 100644 board/rockchip/evb_rk3128/evk-rk3128.c delete mode 100644 board/rockchip/evb_rk3229/Makefile delete mode 100644 board/rockchip/evb_rk3229/evb_rk3229.c delete mode 100644 board/rockchip/evb_rk3288/Makefile delete mode 100644 board/rockchip/evb_rk3288/evb-rk3288.c delete mode 100644 board/rockchip/evb_rk3328/Makefile delete mode 100644 board/rockchip/evb_rk3328/evb-rk3328.c delete mode 100644 board/rockchip/evb_rk3568/Makefile delete mode 100644 board/rockchip/evb_rk3568/evb_rk3568.c delete mode 100644 board/rockchip/sheep_rk3368/Makefile delete mode 100644 board/rockchip/sheep_rk3368/sheep_rk3368.c delete mode 100644 board/sagem/f@st1704/Makefile delete mode 100644 board/sagem/f@st1704/[email protected] delete mode 100644 board/samsung/starqltechn/Makefile delete mode 100644 board/samsung/starqltechn/starqltechn.c delete mode 100644 board/sfr/nb4_ser/Makefile delete mode 100644 board/sfr/nb4_ser/nb4-ser.c delete mode 100644 board/terasic/de0-nano-soc/Makefile delete mode 100644 board/terasic/de0-nano-soc/socfpga.c delete mode 100644 board/terasic/de10-nano/Makefile delete mode 100644 board/terasic/de10-nano/socfpga.c delete mode 100644 board/terasic/de10-standard/Makefile delete mode 100644 board/terasic/de10-standard/socfpga.c delete mode 100644 board/terasic/sockit/Makefile delete mode 100644 board/terasic/sockit/socfpga.c delete mode 100644 board/theobroma-systems/lion_rk3368/Makefile delete mode 100644 board/theobroma-systems/lion_rk3368/lion_rk3368.c delete mode 100644 board/vocore/vocore2/Makefile delete mode 100644 board/vocore/vocore2/board.c
board/altera/arria10-socdk/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Copyright (C) 2015 Altera Corporation <www.altera.com> - -obj-y := socfpga.o
board/altera/arria10-socdk/socfpga.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2015 Altera Corporation <www.altera.com> -*/ - -#include <common.h>
board/altera/arria5-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/altera/arria5-socdk/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
board/altera/cyclone5-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/altera/cyclone5-socdk/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
board/altera/stratix10-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (C) 2016-2017 Intel Corporation <www.intel.com> -# -# SPDX-License-Identifier: GPL-2.0 -# - -obj-y := socfpga.o
board/altera/stratix10-socdk/socfpga.c deleted +0 -7
@@ -1,7 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2016-2018 Intel Corporation <www.intel.com> -* -*/ - -#include <common.h>
board/aries/mcvevk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/aries/mcvevk/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2015 Marek Vasut <[email protected]> -*/ -#include <common.h>
board/aspeed/evb_ast2500/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += evb_ast2500.o
board/aspeed/evb_ast2500/evb_ast2500.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2016 Google, Inc -*/ -#include <common.h>
board/aspeed/evb_ast2600/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += evb_ast2600.o
board/aspeed/evb_ast2600/evb_ast2600.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) Aspeed Technology Inc. -*/ -#include <common.h>
board/broadcom/bcm968380gerg/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += bcm968380gerg.o
board/broadcom/bcm968380gerg/bcm968380gerg.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2018 Philippe Reynes <[email protected]> -*/ - -#include <common.h>
board/broadcom/bcm968380gerg/board.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2018 Philippe Reynes <[email protected]> -*/ - -#include <common.h>
board/comtrend/ar5315u/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += ar-5315u.o
board/comtrend/ar5315u/ar-5315u.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2018 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/comtrend/ar5387un/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += ar-5387un.o
board/comtrend/ar5387un/ar-5387un.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/comtrend/ct5361/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += ct-5361.o
board/comtrend/ct5361/ct-5361.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/comtrend/vr3032u/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += vr-3032u.o
board/comtrend/vr3032u/vr-3032u.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/comtrend/wap5813n/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += wap-5813n.o
board/comtrend/wap5813n/wap-5813n.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/devboards/dbm-soc1/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2018 Marek Vasut <[email protected]> - -obj-y := socfpga.o
board/devboards/dbm-soc1/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2018 Marek Vasut <[email protected]> -*/ -#include <common.h>
board/ebv/socrates/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/ebv/socrates/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
board/edgeble/neural-compute-module-2/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += neu2.o
board/edgeble/neural-compute-module-2/neu2.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. -*/
board/edgeble/neural-compute-module-6/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += neu6.o
board/edgeble/neural-compute-module-6/neu6.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. -*/
board/efi/efi-x86_app/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2015 Google, Inc - -obj-y += app.o
board/efi/efi-x86_app/app.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2015 Google, Inc -*/ - -#include <common.h>
board/emulation/qemu-x86/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2015, Bin Meng <[email protected]> - -obj-y += qemu-x86.o
board/emulation/qemu-x86/qemu-x86.c deleted +0 -0
board/engicam/px30_core/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (c) 2020 Amarula Solutions(India) -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += px30_core.o
board/engicam/px30_core/px30_core.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2020 Amarula Solutions(India) -*/
board/geekbuying/geekbox/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2016 Andreas Färber - -obj-y += geekbox.o
board/geekbuying/geekbox/geekbox.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2016 Andreas Färber -*/ - -#include <common.h>
board/google/chromebook_link/Makefile deleted +0 -13
@@ -1,13 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2011 The Chromium OS Authors. -# (C) Copyright 2008 -# Graeme Russ, [email protected]. -# -# (C) Copyright 2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# -# (C) Copyright 2002 -# Daniel Engström, Omicron Ceti AB, [email protected]. - -obj-y += link.o
board/google/chromebook_link/link.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2014 Google, Inc -*/ - -#include <common.h>
board/google/chromebook_samus/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2016 Google, Inc - -obj-y += samus.o
board/google/chromebook_samus/samus.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2016 Google, Inc -*/ - -#include <common.h>
board/google/chromebox_panther/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2015 Google, Inc - -obj-y += panther.o
board/google/chromebox_panther/panther.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2015 Google, Inc -*/ - -#include <common.h>
board/hardkernel/odroid_m1/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += odroid_m1.o
board/hardkernel/odroid_m1/odroid_m1.c deleted +0 -1
@@ -1 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+
board/huawei/hg556a/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += hg556a.o
board/huawei/hg556a/hg556a.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/intel/agilex-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (C) 2019 Intel Corporation <www.intel.com> -# -# SPDX-License-Identifier: GPL-2.0 -# - -obj-y := socfpga.o
board/intel/agilex-socdk/socfpga.c deleted +0 -7
@@ -1,7 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2019 Intel Corporation <www.intel.com> -* -*/ - -#include <common.h>
board/intel/bayleybay/Makefile +0 -1
@@ -2,5 +2,4 @@ # # Copyright (C) 2015, Bin Meng <[email protected]> -obj-y += bayleybay.o obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/intel/bayleybay/bayleybay.c deleted +0 -7
@@ -1,7 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2015, Bin Meng <[email protected]> -*/ - -#include <common.h> -#include <asm/gpio.h>
board/intel/n5x-socdk/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# Copyright (C) 2020-2021 Intel Corporation <www.intel.com> -# -# SPDX-License-Identifier: GPL-2.0 -# - -obj-y := socfpga.o
board/intel/n5x-socdk/socfpga.c deleted +0 -7
@@ -1,7 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> -* -*/ - -#include <common.h>
board/is1/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2015 Stefan Roese <[email protected]> - -obj-y := socfpga.o
board/is1/socfpga.c deleted +0 -4
@@ -1,4 +0,0 @@ -/* -* Currently nothing special is needed on this board, empty file to -* make build scripts happy -*/
board/mediatek/mt7620/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-y += board.o
board/mediatek/mt7620/board.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2020 MediaTek Inc. All Rights Reserved. -* -* Author: Weijie Gao <[email protected]> -*/
board/mediatek/mt7621/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-y += board.o
board/mediatek/mt7621/board.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2022 MediaTek Inc. All rights reserved. -* -* Author: Weijie Gao <[email protected]> -*/
board/mediatek/mt7628/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-y += board.o
board/mediatek/mt7628/board.c deleted +0 -8
@@ -1,8 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2020 MediaTek Inc. All Rights Reserved. -* -* Author: Weijie Gao <[email protected]> -*/ - -#include <common.h>
board/mqmaker/miqi_rk3288/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2016 Rockchip Electronics Co., Ltd -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += miqi-rk3288.o
board/mqmaker/miqi_rk3288/miqi-rk3288.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2016 Rockchip Electronics Co., Ltd -*/
board/netgear/cg3100d/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += cg3100d.o
board/netgear/cg3100d/cg3100d.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/pine64/quartz64_rk3566/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += quartz64-rk3566.o
board/pine64/quartz64_rk3566/quartz64-rk3566.c deleted +0 -1
@@ -1 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+
board/qualcomm/dragonboard845c/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2022 Sumit Garg <[email protected]> -# -# This empty file prevents make error. -# Board logic defined in arch/arm/mach-snapdragon/init_sdm845.c, no custom logic for dragonboard845c so far. -# - -obj-y += dragonboard845c.o
board/qualcomm/dragonboard845c/dragonboard845c.c deleted +0 -9
@@ -1,9 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* This empty file prevents make linking error. -* No custom logic for dragonboard845c so far. -* -* (C) Copyright 2022 Sumit Garg <[email protected]> -*/ - -void noop (void ) {}
board/radxa/rock/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2015 Heiko Stuebner -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += rock.o
board/radxa/rock/rock.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2015 Google, Inc -*/ - -#include <common.h>
board/radxa/rock2/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2015 Google, Inc -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += rock2.o
board/radxa/rock2/rock2.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2015 Google, Inc -*/ - -#include <common.h>
board/rikomagic/mk808/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += mk808.o
board/rikomagic/mk808/mk808.c deleted +0 -3
@@ -1,3 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ - -#include <common.h>
board/rockchip/evb_px30/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2017 Rockchip Electronics Co., Ltd -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += evb_px30.o
board/rockchip/evb_px30/evb_px30.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2019 Rockchip Electronics Co., Ltd -*/
board/rockchip/evb_px5/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2017 Rockchip Electronics Co., Ltd - -obj-y += evb-px5.o
board/rockchip/evb_px5/evb-px5.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2017 Andy Yan -*/
board/rockchip/evb_rk3128/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += evk-rk3128.o
board/rockchip/evb_rk3128/evk-rk3128.c deleted +0 -0
board/rockchip/evb_rk3229/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2015 Google, Inc -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += evb_rk3229.o
board/rockchip/evb_rk3229/evb_rk3229.c deleted +0 -9
@@ -1,9 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2017 Rockchip Electronics Co., Ltd -*/ - -#include <common.h> -#include <dm.h> -#include <asm/io.h> -#include <asm/arch-rockchip/uart.h>
board/rockchip/evb_rk3288/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2016 Rockchip Electronics Co., Ltd -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += evb-rk3288.o
board/rockchip/evb_rk3288/evb-rk3288.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2016 Rockchip Electronics Co., Ltd -*/
board/rockchip/evb_rk3328/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2016 Rockchip Electronics Co., Ltd -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += evb-rk3328.o
board/rockchip/evb_rk3328/evb-rk3328.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2016 Rockchip Electronics Co., Ltd -*/
board/rockchip/evb_rk3568/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# -# (C) Copyright 2021 Rockchip Electronics Co., Ltd -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += evb_rk3568.o
board/rockchip/evb_rk3568/evb_rk3568.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* (C) Copyright 2021 Rockchip Electronics Co., Ltd -*/
board/rockchip/sheep_rk3368/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2017 Rockchip Electronics Co., Ltd - -obj-y += sheep_rk3368.o
board/rockchip/sheep_rk3368/sheep_rk3368.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2017 Andy Yan -*/
board/sagem/f@st1704/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += [email protected]
board/sagem/f@st1704/[email protected] deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/samsung/starqltechn/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2021 Dzmitry Sankouski <[email protected]> -# -# This empty file prevents make error. -# Board logic defined in arch/arm/mach-snapdragon/init_sdm845.c, no custom logic for starqltechn so far. -# - -obj-y += starqltechn.o
board/samsung/starqltechn/starqltechn.c deleted +0 -10
@@ -1,10 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* This empty file prevents make linking error. -* No custom logic for starqltechn so far. -* -* (C) Copyright 2021 Dzmitry Sankouski <[email protected]> -* -*/ - -void nooop (void ) {}
board/sfr/nb4_ser/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += nb4-ser.o
board/sfr/nb4_ser/nb4-ser.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> -*/ - -#include <common.h>
board/terasic/de0-nano-soc/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/terasic/de0-nano-soc/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
board/terasic/de10-nano/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# Copyright (C) 2017, Intel Corporation -# -# - -obj-y := socfpga.o
board/terasic/de10-nano/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017, Intel Corporation -*/ -#include <common.h>
board/terasic/de10-standard/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# Copyright (C) 2017, Intel Corporation -# -# - -obj-y := socfpga.o
board/terasic/de10-standard/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2017, Intel Corporation -*/ -#include <common.h>
board/terasic/sockit/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2001-2006 -# Wolfgang Denk, DENX Software Engineering, [email protected]. -# (C) Copyright 2010, Thomas Chou <[email protected]> - -obj-y := socfpga.o
board/terasic/sockit/socfpga.c deleted +0 -5
@@ -1,5 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2012 Altera Corporation <www.altera.com> -*/ -#include <common.h>
board/theobroma-systems/lion_rk3368/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH - -obj-y += lion_rk3368.o
board/theobroma-systems/lion_rk3368/lion_rk3368.c deleted +0 -4
@@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH -*/
board/vocore/vocore2/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ - -obj-y += board.o
board/vocore/vocore2/board.c deleted +0 -6
@@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Copyright (C) 2019 Mauro Condarelli <[email protected]> -* -* Nothing actually needed here -*/
Signature · 1 line
2.34.1
Re: [PATCH 2/3] board: Remove essentially empty board files and Makefiles
Quoted 7 lines · Tom Rini
As part of reviewing a new platform, Daniel Schwierzeck noted that we can have an empty
Makefilein the board directory and don't need an emptyboard.cfile as well. Further with further cleanup in theMakefilewe can now omit theMakefileentirely. Remove a number of now unnecessaryboard.cand Makefiles.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 3/3 exynos: Cleanup exynos_init
In reply to Tom Rini- None of the callers perform error checking and based on the non-empty versions of this function, there's no checking to be done, so make this a void.
- Add a default weak version of the function.
- Remove the empty versions of exynos_init now that we have a weak version.
--- arch/arm/mach-exynos/include/mach/board.h | 2 +- board/samsung/axy17lte/Makefile | 3 --- board/samsung/axy17lte/axy17lte.c | 11 ----------- board/samsung/common/board.c | 8 +++++++- board/samsung/common/exynos5-dt.c | 5 ----- board/samsung/espresso7420/Makefile | 6 ------ board/samsung/espresso7420/espresso7420.c | 13 ------------- board/samsung/odroid/odroid.c | 4 +--- board/samsung/origen/origen.c | 5 ----- board/samsung/trats/trats.c | 14 +++++--------- board/samsung/trats2/trats2.c | 4 +--- board/samsung/universal_c210/universal.c | 4 +--- 12 files changed, 16 insertions(+), 63 deletions(-) delete mode 100644 board/samsung/axy17lte/Makefile delete mode 100644 board/samsung/axy17lte/axy17lte.c delete mode 100644 board/samsung/espresso7420/Makefile delete mode 100644 board/samsung/espresso7420/espresso7420.c
arch/arm/mach-exynos/include/mach/board.h +1 -1
@@ -11,7 +11,7 @@* Exynos baord specific changes for * board_init */ -int exynos_init (void ); +void exynos_init (void );/* * Exynos board specific changes for
board/samsung/axy17lte/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -obj-y += axy17lte.o
board/samsung/axy17lte/axy17lte.c deleted +0 -11
@@ -1,11 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Samsung A5Y17 and A3Y17 LTE boards based on Exynos 7880 and Exynos 7870 SoCs -*/ - -#include <common.h> - -int exynos_init (void ) -{ -return 0 ; -}
board/samsung/common/board.c +7 -1
@@ -43,6 +43,10 @@ __weak int exynos_early_init_f(void)return 0 ; } +__weak void exynos_init (void ) +{ +} +__weak int exynos_power_init (void ) {return 0 ;
@@ -113,7 +117,9 @@ int board_init(void) gd->ram_size -= size; gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS -1 ].size -= size;#endif -return exynos_init (); +exynos_init (); + +return 0 ; }int dram_init (void )
board/samsung/common/exynos5-dt.c +0 -5
@@ -37,11 +37,6 @@DECLARE_GLOBAL_DATA_PTR ; -int exynos_init (void ) -{ -return 0 ; -} -static int exynos_set_regulator (const char *name,uint uv) {struct udevice *dev;
board/samsung/espresso7420/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2016 Samsung Electronics -# Thomas Abraham <[email protected]> - -obj-y += espresso7420.o
board/samsung/espresso7420/espresso7420.c deleted +0 -13
@@ -1,13 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* -* Espresso7420 board file -* Copyright (C) 2016 Samsung Electronics -* Thomas Abraham <[email protected]> -*/ - -#include <common.h> - -int exynos_init (void ) -{ -return 0 ; -}
board/samsung/odroid/odroid.c +1 -3
@@ -422,11 +422,9 @@ int exynos_early_init_f(void)return 0 ; } -int exynos_init (void ) +void exynos_init (void ) {board_gpio_init (); - -return 0 ; }int exynos_power_init (void )
board/samsung/origen/origen.c +0 -5
@@ -12,11 +12,6 @@#include <asm/arch/pinmux.h> #include <usb.h> -int exynos_init (void ) -{ -return 0 ; -} -int board_usb_init (int index,enum usb_init_type init) {return 0 ;
board/samsung/trats/trats.c +5 -9
@@ -40,17 +40,8 @@ u32 get_board_rev(void) }#endif -static void check_hw_revision (void );struct dwc2_plat_otg_data s5pc210_otg_data; -int exynos_init (void ) -{ -check_hw_revision (); -printf ("HW Revision:\t0x%x\n" , board_rev); - -return 0 ; -} -#if !CONFIG_IS_ENABLED (DM_I2C )/* TODO(maintainer): Convert to driver model */ static void trats_low_power_mode (void ) {
@@ -215,6 +206,11 @@ static void check_hw_revision(void) board_rev |= hwrev; } +void exynos_init (void ) +{ +check_hw_revision (); +printf ("HW Revision:\t0x%x\n" , board_rev); +}#ifdef CONFIG_USB_GADGET static int s5pc210_phy_control (int on)
board/samsung/trats2/trats2.c +1 -3
@@ -107,7 +107,7 @@ int exynos_early_init_f(void)return 0 ; } -int exynos_init (void ) +void exynos_init (void ) {struct exynos4_power *pwr = (struct exynos4_power *)samsung_get_base_power ();
@@ -124,8 +124,6 @@ int exynos_init(void)*/ writel (0 , &pwr->inform4);writel (0 , &pwr->inform5); - -return 0 ; }int exynos_power_init (void )
board/samsung/universal_c210/universal.c +1 -3
@@ -265,7 +265,7 @@ static int init_pmic_lcd(void)return 0 ; } -int exynos_init (void ) +void exynos_init (void ) { gd->bd->bi_arch_number =MACH_TYPE_UNIVERSAL_C210 ;
@@ -293,6 +293,4 @@ int exynos_init(void)check_hw_revision ();printf ("HW Revision:\t0x%x\n" , board_rev); - -return 0 ; }
Signature · 1 line
2.34.1
Re: [PATCH 3/3] exynos: Cleanup exynos_init
Quoted 8 lines · Tom Rini
- None of the callers perform error checking and based on the non-empty versions of this function, there's no checking to be done, so make this a void.
- Add a default weak version of the function.
- Remove the empty versions ofexynos_initnow that we have a weak version.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
Quoted 6 lines · Tom Rini
It is entirely possible at this point to have platforms in U-Boot that do not have board-specific C code (just
Kconfigor environment) and so make it optional to have to descend in to and then build in the board directory.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom