All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ti-tisdk-makefile: add k3 U-Boot for R5
@ 2018-08-24 19:25 Jacob Stiffler
  2018-08-24 19:25 ` [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources Jacob Stiffler
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jacob Stiffler @ 2018-08-24 19:25 UTC (permalink / raw)
  To: meta-arago

* Add a custom U-Boot target for k3 as there are multiple differences
  from previous machines:
  - Two U-Boot images. One for A53, one for R5.
  - Each U-Boot image is combined into a fitImage with other images
   (e.g. ATF, OPTEE, SYSFW).
* Also make additions to the Rules.make as the R5 uses the armv7
  toolchain while the A53 uses the armv8 toolchain.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../ti-tisdk-makefile/k3/Makefile_u-boot-spl       | 61 ++++++++++++++++++++++
 .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb     |  9 ++++
 2 files changed, 70 insertions(+)
 create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl

diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl
new file mode 100644
index 0000000..7a0ec22
--- /dev/null
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl
@@ -0,0 +1,61 @@
+
+# u-boot build targets
+u-boot-spl: u-boot
+u-boot-spl_clean: u-boot_clean
+u-boot-spl_install: u-boot_install
+
+UBOOT_A53_BUILD_DIR=$(TI_SDK_PATH)/board-support/u-boot_build/a53
+UBOOT_R5_BUILD_DIR=$(TI_SDK_PATH)/board-support/u-boot_build/r5
+
+UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/bl31.bin
+UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/bl32.bin
+UBOOT_SYSFW=$(TI_SDK_PATH)/board-support/prebuilt-images/sysfw.bin
+
+u-boot: u-boot-a53 u-boot-r5
+u-boot_clean: u-boot-a53_clean u-boot-r5_clean
+
+u-boot-a53:
+	@echo ===================================
+	@echo    Building U-boot for A53
+	@echo ===================================
+	$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
+		 $(UBOOT_MACHINE) O=$(UBOOT_A53_BUILD_DIR)
+	$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
+		CONFIG_MKIMAGE_DTC_PATH=$(UBOOT_A53_BUILD_DIR)/scripts/dtc/dtc \
+		ATF=$(UBOOT_ATF) TEE=$(UBOOT_TEE) \
+		O=$(UBOOT_A53_BUILD_DIR)
+
+u-boot-a53_clean:
+	@echo ===================================
+	@echo    Cleaining U-boot for A53
+	@echo ===================================
+	$(MAKE) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
+		O=$(UBOOT_A53_BUILD_DIR) distclean
+	@rm -rf $(UBOOT_A53_BUILD_DIR)
+
+
+u-boot-r5:
+	@echo ===================================
+	@echo    Building U-boot for R5
+	@echo ===================================
+	$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE_ARMV7) \
+		 $(UBOOT_MACHINE_R5) O=$(UBOOT_R5_BUILD_DIR)
+	$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE_ARMV7) \
+		CONFIG_MKIMAGE_DTC_PATH=$(UBOOT_R5_BUILD_DIR)/scripts/dtc/dtc \
+		SYSFW=$(UBOOT_SYSFW) \
+		O=$(UBOOT_R5_BUILD_DIR)
+
+u-boot-r5_clean:
+	@echo ===================================
+	@echo    Cleaining U-boot for R5
+	@echo ===================================
+	$(MAKE) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE_ARMV7) \
+		O=$(UBOOT_R5_BUILD_DIR) distclean
+	@rm -rf $(UBOOT_R5_BUILD_DIR)
+
+u-boot_install:
+	@echo ===================================
+	@echo    Installing U-boot
+	@echo ===================================
+	@echo "Nothing to do"
+
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
index f296ffa..75a9392 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
@@ -282,6 +282,15 @@ do_install () {
 
 }
 
+do_install_append_k3() {
+    cat >> ${D}/Rules.make << __EOF__
+
+# Add CROSS_COMPILE and UBOOT_MACHINE for the R5
+export CROSS_COMPILE_ARMV7=\$(LINUX_DEVKIT_PATH)/sysroots/${SDKMACHINE}-arago-linux/usr/bin/arm-linux-gnueabihf-
+UBOOT_MACHINE_R5=am65x_evm_r5_defconfig
+__EOF__
+}
+
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 FILES_${PN} = "/*"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources
  2018-08-24 19:25 [PATCH 1/4] ti-tisdk-makefile: add k3 U-Boot for R5 Jacob Stiffler
@ 2018-08-24 19:25 ` Jacob Stiffler
  2018-08-24 20:31   ` Denys Dmytriyenko
  2018-08-24 19:25 ` [PATCH 3/4] ti-tisdk-makefile: k3: add missing targets Jacob Stiffler
  2018-08-24 19:25 ` [PATCH 4/4] ti-tisdk-makefile: k3: fix installation of kernel and DTBs Jacob Stiffler
  2 siblings, 1 reply; 5+ messages in thread
From: Jacob Stiffler @ 2018-08-24 19:25 UTC (permalink / raw)
  To: meta-arago

Add:
* cryptodev-module-src
* matrix-gui-browser

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb          | 3 ++-
 .../packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb          | 3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb
index 59593e8..e87d8c2 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install crypto sources in SDK"
 LICENSE = "MIT"
-PR = "r10"
+PR = "r11"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -16,6 +16,7 @@ CRYPTO_RDEPENDS_append_ti33x = " cryptodev-module-src"
 CRYPTO_RDEPENDS_append_ti43x = " cryptodev-module-src"
 CRYPTO_RDEPENDS_append_dra7xx = " cryptodev-module-src"
 CRYPTO_RDEPENDS_append_keystone = " cryptodev-module-src"
+CRYPTO_RDEPENDS_append_k3 = " cryptodev-module-src"
 
 RDEPENDS_${PN} = "\
     ${CRYPTO_RDEPENDS} \
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb
index 078adab..11355fc 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install Matrix v2 and associated applications sources in the SDK"
 LICENSE = "MIT"
-PR = "r6"
+PR = "r7"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -13,7 +13,6 @@ MATRIX_GUI = " \
 
 MATRIX_GUI_keystone = ""
 MATRIX_GUI_omapl138 = ""
-MATRIX_GUI_k3 = ""
 
 RDEPENDS_${PN} = "\
     matrix-gui-src \
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] ti-tisdk-makefile: k3: add missing targets
  2018-08-24 19:25 [PATCH 1/4] ti-tisdk-makefile: add k3 U-Boot for R5 Jacob Stiffler
  2018-08-24 19:25 ` [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources Jacob Stiffler
@ 2018-08-24 19:25 ` Jacob Stiffler
  2018-08-24 19:25 ` [PATCH 4/4] ti-tisdk-makefile: k3: fix installation of kernel and DTBs Jacob Stiffler
  2 siblings, 0 replies; 5+ messages in thread
From: Jacob Stiffler @ 2018-08-24 19:25 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
index 75a9392..6932616 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
@@ -50,7 +50,7 @@ SRC_URI = "\
     file://Makefile_barcode-roi \
 "
 
-PR = "r87"
+PR = "r88"
 
 MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
                         refresh-screen \
@@ -59,7 +59,6 @@ MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
 
 MAKEFILES_MATRIX_GUI_keystone = ""
 MAKEFILES_MATRIX_GUI_omapl138 = ""
-MAKEFILES_MATRIX_GUI_k3 = ""
 
 MAKEFILES_COMMON = "linux \
                     matrix-gui \
@@ -165,6 +164,9 @@ MAKEFILES_append_k2e = " opencl-examples \
 
 MAKEFILES_append_k3 = " u-boot-spl \
                         linux-dtbs \
+                        barcode-roi \
+                        cryptodev \
+                        ti-sgx-ddk-km \
 "
 
 # Use this to export kernel arch to ARCH
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] ti-tisdk-makefile: k3: fix installation of kernel and DTBs
  2018-08-24 19:25 [PATCH 1/4] ti-tisdk-makefile: add k3 U-Boot for R5 Jacob Stiffler
  2018-08-24 19:25 ` [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources Jacob Stiffler
  2018-08-24 19:25 ` [PATCH 3/4] ti-tisdk-makefile: k3: add missing targets Jacob Stiffler
@ 2018-08-24 19:25 ` Jacob Stiffler
  2 siblings, 0 replies; 5+ messages in thread
From: Jacob Stiffler @ 2018-08-24 19:25 UTC (permalink / raw)
  To: meta-arago

* Install overlays in addition to base DTBs
* The DTBs and overlays may be in a subdirectory of .../boot/dts
* Fix more places where KERNEL_ARCH was not abstracted.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux    | 2 +-
 .../ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs             | 2 +-
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb            | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux
index 100a225..faa905a 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux
@@ -17,7 +17,7 @@ linux_install: __DTB_DEPEND_INSTALL__
 		exit 1; \
 	fi
 	install -d $(DESTDIR)/boot
-	install $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/__KERNEL_BUILD_CMDS__ $(DESTDIR)/boot
+	install $(LINUXKERNEL_INSTALL_DIR)/arch/__KERNEL_ARCH__/boot/__KERNEL_IMAGE_TYPE__ $(DESTDIR)/boot
 	install $(LINUXKERNEL_INSTALL_DIR)/vmlinux $(DESTDIR)/boot
 	install $(LINUXKERNEL_INSTALL_DIR)/System.map $(DESTDIR)/boot
 	$(MAKE) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=__KERNEL_ARCH__ CROSS_COMPILE=$(CROSS_COMPILE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_STRIP=$(INSTALL_MOD_STRIP) modules_install
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
index 1ecaf5e..2697772 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
@@ -18,7 +18,7 @@ linux-dtbs_install:
 		exit 1; \
 	fi
 	install -d $(DESTDIR)/boot
-	@cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/*.dtb $(DESTDIR)/boot/
+	@cp -f `find $(LINUXKERNEL_INSTALL_DIR)/arch/__KERNEL_ARCH__/boot/dts/ -regex '.*\.dtbo?'` $(DESTDIR)/boot/
 
 linux-dtbs_clean:
 	@echo =======================================
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
index 6932616..aba71d9 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
@@ -249,6 +249,7 @@ do_install () {
     fi
 
     sed -i -e "s/__KERNEL_ARCH__/${ARCH}/" ${D}/Makefile
+    sed -i -e "s/__KERNEL_IMAGE_TYPE__/${KERNEL_IMAGE_TYPE}/" ${D}/Makefile
     sed -i -e "s/__KERNEL_BUILD_CMDS__/${KERNEL_BUILD_CMDS}/" ${D}/Makefile
     sed -i -e "s/__SDKMACHINE__/${SDKMACHINE}/g" ${D}/Makefile
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources
  2018-08-24 19:25 ` [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources Jacob Stiffler
@ 2018-08-24 20:31   ` Denys Dmytriyenko
  0 siblings, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2018-08-24 20:31 UTC (permalink / raw)
  To: Jacob Stiffler; +Cc: meta-arago

On Fri, Aug 24, 2018 at 03:25:16PM -0400, Jacob Stiffler wrote:
> Add:
> * cryptodev-module-src
> * matrix-gui-browser

Changelog says "add matrix-gui-browser", but it doesn't seem to correspond to 
the actual change made below.


> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
>  .../packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb          | 3 ++-
>  .../packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb          | 3 +--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb
> index 59593e8..e87d8c2 100644
> --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb
> +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-host.bb
> @@ -1,6 +1,6 @@
>  DESCRIPTION = "Task to install crypto sources in SDK"
>  LICENSE = "MIT"
> -PR = "r10"
> +PR = "r11"
>  
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
>  
> @@ -16,6 +16,7 @@ CRYPTO_RDEPENDS_append_ti33x = " cryptodev-module-src"
>  CRYPTO_RDEPENDS_append_ti43x = " cryptodev-module-src"
>  CRYPTO_RDEPENDS_append_dra7xx = " cryptodev-module-src"
>  CRYPTO_RDEPENDS_append_keystone = " cryptodev-module-src"
> +CRYPTO_RDEPENDS_append_k3 = " cryptodev-module-src"
>  
>  RDEPENDS_${PN} = "\
>      ${CRYPTO_RDEPENDS} \
> diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb
> index 078adab..11355fc 100644
> --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb
> +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix-sdk-host.bb
> @@ -1,6 +1,6 @@
>  DESCRIPTION = "Task to install Matrix v2 and associated applications sources in the SDK"
>  LICENSE = "MIT"
> -PR = "r6"
> +PR = "r7"
>  
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
>  
> @@ -13,7 +13,6 @@ MATRIX_GUI = " \
>  
>  MATRIX_GUI_keystone = ""
>  MATRIX_GUI_omapl138 = ""
> -MATRIX_GUI_k3 = ""
>  
>  RDEPENDS_${PN} = "\
>      matrix-gui-src \
> -- 
> 2.7.4
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-24 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 19:25 [PATCH 1/4] ti-tisdk-makefile: add k3 U-Boot for R5 Jacob Stiffler
2018-08-24 19:25 ` [PATCH 2/4] packagegroup-*-sdk-host: k3: add missing sources Jacob Stiffler
2018-08-24 20:31   ` Denys Dmytriyenko
2018-08-24 19:25 ` [PATCH 3/4] ti-tisdk-makefile: k3: add missing targets Jacob Stiffler
2018-08-24 19:25 ` [PATCH 4/4] ti-tisdk-makefile: k3: fix installation of kernel and DTBs Jacob Stiffler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.