Skip to contentSkip to conversation

conf/machine: define UBOOT_SUFFIX and SPL_BINARY in machine configs

PATCH New Denys Dmytriyenko 1 participant 3 messages Oct 17, 2018

lore
Share & tools
lore
#1 lore raw

PATCH 2/3 u-boot-ti: move setting UBOOT_SUFFIX and SPL_BINARY to machine configs

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 recipes-bsp/u-boot/u-boot-ti.inc | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
recipes-bsp/u-boot/u-boot-ti.inc +1 -12
index f22fcb4..d3267be 100644
@@ -11,6 +11,7 @@ def get_git_revision(p):
 UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}"
 
 UBOOT_SUFFIX ?= "img"
+SPL_BINARY ?= "MLO"
 
 require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc
 
@@ -50,15 +51,6 @@ S = "${WORKDIR}/git"
 TI_SECURE_DEV_PKG ?= ""
 export TI_SECURE_DEV_PKG
 
-# SPL (Second Program Loader)
-SPL_BINARY = "MLO"
-SPL_BINARY_k2e-hs-evm = ""
-SPL_BINARY_k2hk-hs-evm = ""
-SPL_BINARY_k2g-hs-evm = ""
-SPL_BINARY_k2l-hs-evm = ""
-SPL_BINARY_omapl138 = ""
-SPL_BINARY_k3 = "tispl.bin"
-
 # SPL (Second Program Loader) to be loaded over UART
 SPL_UART_BINARY = "u-boot-spl.bin"
 SPL_UART_BINARY_keystone = ""
@@ -67,9 +59,6 @@ SPL_UART_BINARY_k3 = ""
 SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
 SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
 
-# Keystone specifics
-UBOOT_SUFFIX_keystone = "bin"
-
 # SPI NOR Flash binaries
 UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin"
 UBOOT_SPI_SPL_BINARY_k2e-hs-evm = ""
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/3 conf/machine: deprecate use of SERIAL_CONSOLE

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 conf/machine/am335x-evm.conf     | 1 -
 conf/machine/am3517-evm.conf     | 2 +-
 conf/machine/am37x-evm.conf      | 2 +-
 conf/machine/am437x-evm.conf     | 2 +-
 conf/machine/am57xx-evm.conf     | 2 +-
 conf/machine/am65xx-evm.conf     | 2 +-
 conf/machine/beagle-x15.conf     | 2 +-
 conf/machine/beagleboard.conf    | 2 +-
 conf/machine/dra7xx-evm.conf     | 2 +-
 conf/machine/include/davinci.inc | 2 +-
 conf/machine/k2e-evm.conf        | 2 +-
 conf/machine/k2g-evm.conf        | 2 +-
 conf/machine/k2hk-evm.conf       | 2 +-
 conf/machine/k2l-evm.conf        | 2 +-
 conf/machine/omap3evm.conf       | 2 +-
 conf/machine/omap5-evm.conf      | 2 +-
 conf/machine/omapl138-lcdk.conf  | 2 +-
 conf/machine/pandaboard.conf     | 2 +-
 18 files changed, 17 insertions(+), 18 deletions(-)
conf/machine/am335x-evm.conf +0 -1
index ba452db..f8696dc 100644
@@ -10,7 +10,6 @@ MACHINE_FEATURES += "touchscreen"
 IMAGE_FSTYPES += "ubifs ubi tar.xz"
 
 # Normally AM335 boards use ttyS0, but ICE uses ttyS3, so try both
-SERIAL_CONSOLE = ""
 SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS3"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
conf/machine/am3517-evm.conf +1 -1
index e14ec1e..87e3f1e 100644
@@ -10,7 +10,7 @@ MACHINE_FEATURES += "touchscreen ethernet"
 IMAGE_FSTYPES += "ubi tar.gz"
 EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 USE_VT = "2"
 
 KERNEL_DEVICETREE = "am3517-evm.dtb"
conf/machine/am37x-evm.conf +1 -1
index f96be3c..e9d1838 100644
@@ -12,7 +12,7 @@ EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
 
 KERNEL_DEVICETREE = "omap3-evm-37xx.dtb"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 # NOTE: there are NAND and OneNAND versions of this board...
 # do ubiattach /dev/ubi_ctrl -m 4
conf/machine/am437x-evm.conf +1 -1
index 06ce4f8..43353ce 100644
@@ -9,7 +9,7 @@ MACHINE_FEATURES += "touchscreen"
 
 IMAGE_FSTYPES += "ubifs ubi tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 # UBI information.  Note that this is board and kernel specific.  Changes
 # in your kernel port may require changes in these variables.  For more
conf/machine/am57xx-evm.conf +1 -1
index 545cd95..329f33f 100644
@@ -8,7 +8,7 @@ MACHINE_FEATURES += "touchscreen"
 
 IMAGE_FSTYPES += "tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 KERNEL_DEVICETREE = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-beagle-x15-revc.dtb \
                     am57xx-evm.dtb am57xx-evm-cam-mt9t111.dtb am57xx-evm-cam-ov10635.dtb \
conf/machine/am65xx-evm.conf +1 -1
index 4bf8993..49e9c10 100644
@@ -8,7 +8,7 @@ MACHINE_FEATURES += "touchscreen"
 
 IMAGE_FSTYPES += "tar.xz cpio cpio.xz wic.xz"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 KERNEL_DEVICETREE = " \
     ti/k3-am654-base-board.dtb \
conf/machine/beagle-x15.conf +1 -1
index da275ad..275a5ce 100644
@@ -8,7 +8,7 @@ KERNEL_DEVICETREE = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-be
 
 MACHINE_GUI_CLASS = "bigscreen"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 UBOOT_MACHINE = "am57xx_evm_config"
 
conf/machine/beagleboard.conf +1 -1
index 8dc77b1..37d23aa 100644
@@ -12,7 +12,7 @@ EXTRA_IMAGECMD_jffs2 = "-lnp"
 
 KERNEL_DEVICETREE = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-beagle-xm-ab.dtb"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 UBOOT_MACHINE = "omap3_beagle_config"
 
conf/machine/dra7xx-evm.conf +1 -1
index b9554ab..f8df957 100644
@@ -8,7 +8,7 @@ MACHINE_FEATURES += "touchscreen"
 
 IMAGE_FSTYPES += "tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 KERNEL_DEVICETREE = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb \
                     dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \
conf/machine/include/davinci.inc +1 -1
index 59e423d..6de6483 100644
@@ -16,7 +16,7 @@ UBOOT_LOADADDRESS = "0x80008000"
 
 EXTRA_IMAGEDEPENDS += "u-boot"
 
-SERIAL_CONSOLE ?= "115200 ttyS0"
+SERIAL_CONSOLES ?= "115200;ttyS0"
 EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
 
 MACHINE_FEATURES = "kernel26 serial ethernet usbhost usbgadget mmc alsa"
conf/machine/k2e-evm.conf +1 -1
index 072d5af..e9f500f 100644
@@ -12,7 +12,7 @@ BOOT_MONITOR_MAKE_TARGET = "k2e"
 
 IMAGE_FSTYPES += "ubifs ubi tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 SYSVINIT_ENABLED_GETTYS = ""
 
conf/machine/k2g-evm.conf +1 -1
index e77fecc..a8ddc66 100644
@@ -15,7 +15,7 @@ BOOT_MONITOR_MAKE_TARGET = "k2g"
 
 IMAGE_FSTYPES += "ubifs ubi tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 SYSVINIT_ENABLED_GETTYS = ""
 
conf/machine/k2hk-evm.conf +1 -1
index 6f1762d..de79de9 100644
@@ -12,7 +12,7 @@ BOOT_MONITOR_MAKE_TARGET = "k2hk"
 
 IMAGE_FSTYPES += "ubifs ubi tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 SYSVINIT_ENABLED_GETTYS = ""
 
conf/machine/k2l-evm.conf +1 -1
index c021161..e326ba2 100644
@@ -12,7 +12,7 @@ BOOT_MONITOR_MAKE_TARGET = "k2l"
 
 IMAGE_FSTYPES += "ubifs ubi tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 
 SYSVINIT_ENABLED_GETTYS = ""
 
conf/machine/omap3evm.conf +1 -1
index a38bd7a..a7457c0 100644
@@ -10,7 +10,7 @@ MACHINE_FEATURES += "touchscreen ethernet"
 IMAGE_FSTYPES += "jffs2 tar.gz"
 EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLES = "115200;ttyS0"
 USE_VT = "0"
 
 EXTRA_IMAGEDEPENDS += "x-load"
conf/machine/omap5-evm.conf +1 -1
index 290efc7..28044cb 100644
@@ -8,7 +8,7 @@ IMAGE_FSTYPES += "ubi tar.gz"
 
 KERNEL_DEVICETREE = "omap5-uevm.dtb"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 # UBI information.  Note that this is board and kernel specific.  Changes
 # in your kernel port may require changes in these variables.  For more
conf/machine/omapl138-lcdk.conf +1 -1
index a6d6bf9..06db2f8 100644
@@ -14,7 +14,7 @@ UBOOT_LOADADDRESS = "0xc0008000"
 
 IMAGE_FSTYPES += "tar.xz"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 KERNEL_DEVICETREE = "da850-evm.dtb da850-lcdk.dtb"
 
conf/machine/pandaboard.conf +1 -1
index 8a0a284..f01472d 100644
@@ -10,7 +10,7 @@ IMAGE_FSTYPES += "tar.gz"
 
 KERNEL_DEVICETREE = "omap4-panda.dtb omap4-panda-a4.dtb omap4-panda-es.dtb"
 
-SERIAL_CONSOLE = "115200 ttyS2"
+SERIAL_CONSOLES = "115200;ttyS2"
 
 MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
 MACHINE_FEATURES = "kernel26 wifi bluetooth alsa apm ext2 screen usbgadget usbhost vfat sgx"
Signature · 1 line
2.7.4
#0 lore raw

PATCH 1/3 conf/machine: define UBOOT_SUFFIX and SPL_BINARY in machine configs

From: Denys Dmytriyenko <[email protected]>

---
 conf/machine/beaglebone.conf      | 6 ------
 conf/machine/include/k3.inc       | 7 ++++---
 conf/machine/include/keystone.inc | 3 +++
 conf/machine/include/omap-a15.inc | 3 +++
 conf/machine/include/ti33x.inc    | 3 +++
 conf/machine/include/ti43x.inc    | 3 +++
 conf/machine/k2e-hs-evm.conf      | 1 +
 conf/machine/k2g-hs-evm.conf      | 1 +
 conf/machine/k2hk-hs-evm.conf     | 1 +
 conf/machine/k2l-hs-evm.conf      | 1 +
 conf/machine/omapl138-lcdk.conf   | 1 +
 11 files changed, 21 insertions(+), 9 deletions(-)
conf/machine/beaglebone.conf +0 -6
index 5e7348a..450a189 100644
@@ -13,12 +13,6 @@ MACHINE_GUI_CLASS = "bigscreen"
 
 SERIAL_CONSOLES = "115200;ttyS0"
 
-# fall back on generic am335x_evm_config for now
-#UBOOT_MACHINE = "am335x_boneblack_config"
-
-SPL_BINARY = "MLO"
-UBOOT_SUFFIX = "img"
-
 WKS_FILE = "sdimage-bootpart.wks"
 
 do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
conf/machine/include/k3.inc +4 -3
index 1c540f3..22fdeb9 100644
@@ -17,9 +17,10 @@ UBOOT_ARCH = "arm"
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
-EXTRA_IMAGEDEPENDS += " \
-    virtual/bootloader \
-"
+SPL_BINARY = "tispl.bin"
+UBOOT_SUFFIX = "img"
+
+EXTRA_IMAGEDEPENDS += "virtual/bootloader"
 
 MACHINE_GUI_CLASS = "smallscreen"
 
conf/machine/include/keystone.inc +3 -0
index 3e96e92..ef33975 100644
@@ -16,6 +16,9 @@ KERNEL_IMAGETYPE = "zImage"
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "bin"
+
 # Use the expected value of the ubifs filesystem's volume name in the kernel
 # and u-boot.
 UBI_VOLNAME = "rootfs"
conf/machine/include/omap-a15.inc +3 -0
index 6dcff82..233b45f 100644
@@ -19,6 +19,9 @@ UBOOT_ARCH = "arm"
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "img"
+
 EXTRA_IMAGEDEPENDS += "virtual/bootloader"
 
 PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
conf/machine/include/ti33x.inc +3 -0
index 05527b8..487ceb4 100644
@@ -40,6 +40,9 @@ UBOOT_MACHINE = "am335x_evm_config"
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "img"
+
 # Use the expected value of the ubifs filesystem's volume name in the kernel
 # and u-boot.
 UBI_VOLNAME = "rootfs"
conf/machine/include/ti43x.inc +3 -0
index ddc270a..9adf140 100644
@@ -38,6 +38,9 @@ UBOOT_MACHINE = "am43xx_evm_config"
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "img"
+
 # Use the expected value of the ubifs filesystem's volume name in the kernel
 # and u-boot.
 UBI_VOLNAME = "rootfs"
conf/machine/k2e-hs-evm.conf +1 -0
index 98d595d..1fc03d6 100644
@@ -5,6 +5,7 @@
 require conf/machine/k2e-evm.conf
 
 UBOOT_MACHINE = "k2e_hs_evm_config"
+SPL_BINARY = ""
 
 UBOOT_ENTRYPOINT = "0x82000000"
 UBOOT_LOADADDRESS = "0x82000000"
conf/machine/k2g-hs-evm.conf +1 -0
index 852e93b..0620b1f 100644
@@ -5,6 +5,7 @@
 require conf/machine/k2g-evm.conf
 
 UBOOT_MACHINE = "k2g_hs_evm_config"
+SPL_BINARY = ""
 
 UBOOT_ENTRYPOINT = "0x82000000"
 UBOOT_LOADADDRESS = "0x82000000"
conf/machine/k2hk-hs-evm.conf +1 -0
index a5861e2..5c93ca4 100644
@@ -5,6 +5,7 @@
 require conf/machine/k2hk-evm.conf
 
 UBOOT_MACHINE = "k2hk_hs_evm_config"
+SPL_BINARY = ""
 
 UBOOT_ENTRYPOINT = "0x82000000"
 UBOOT_LOADADDRESS = "0x82000000"
conf/machine/k2l-hs-evm.conf +1 -0
index fe58b1d..097f94d 100644
@@ -5,6 +5,7 @@
 require conf/machine/k2l-evm.conf
 
 UBOOT_MACHINE = "k2l_hs_evm_config"
+SPL_BINARY = ""
 
 UBOOT_ENTRYPOINT = "0x82000000"
 UBOOT_LOADADDRESS = "0x82000000"
conf/machine/omapl138-lcdk.conf +1 -0
index c2ffb40..a6d6bf9 100644
@@ -7,6 +7,7 @@ require conf/machine/include/omapl138.inc
 
 UBOOT_MACHINE = "omapl138_lcdk_config"
 UBOOT_SUFFIX = "ais"
+SPL_BINARY = ""
 
 UBOOT_ENTRYPOINT = "0xc0008000"
 UBOOT_LOADADDRESS = "0xc0008000"
Signature · 1 line
2.7.4