All of lore.kernel.org
 help / color / mirror / Atom feed
* [master/thud][PATCH 1/3] arago-src-ipkd: configure jailhouse sourceipk
@ 2019-08-21 18:31 Jacob Stiffler
  2019-08-21 18:31 ` [master/thud][PATCH 2/3] packagegroup: addons: add jailhouse for all k3 Jacob Stiffler
  2019-08-21 18:31 ` [master/thud][PATCH 3/3] ti-tisdk-makefile: add jailhouse target Jacob Stiffler
  0 siblings, 2 replies; 3+ messages in thread
From: Jacob Stiffler @ 2019-08-21 18:31 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 meta-arago-distro/conf/distro/include/arago-source-ipk.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-arago-distro/conf/distro/include/arago-source-ipk.inc b/meta-arago-distro/conf/distro/include/arago-source-ipk.inc
index fd60d55..6e56c77 100644
--- a/meta-arago-distro/conf/distro/include/arago-source-ipk.inc
+++ b/meta-arago-distro/conf/distro/include/arago-source-ipk.inc
@@ -388,3 +388,6 @@ SRCIPK_INSTALL_DIR_pn-big-data-ipc-demo-linux = "example-applications/${PN}-${PV
 CREATE_SRCIPK_pn-ti-sci-fw_k3 = "1"
 SRCIPK_SRC_DIR_pn-ti-sci-fw_k3 = "${WORKDIR}/imggen"
 SRCIPK_INSTALL_DIR_pn-ti-sci-fw_k3 = "board-support/system-firmware-image-gen-${PV}"
+
+CREATE_SRCIPK_pn-jailhouse = "1"
+SRCIPK_INSTALL_DIR_pn-jailhouse = "board-support/extra-drivers/${PN}-${PV}"
-- 
2.7.4



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

* [master/thud][PATCH 2/3] packagegroup: addons: add jailhouse for all k3
  2019-08-21 18:31 [master/thud][PATCH 1/3] arago-src-ipkd: configure jailhouse sourceipk Jacob Stiffler
@ 2019-08-21 18:31 ` Jacob Stiffler
  2019-08-21 18:31 ` [master/thud][PATCH 3/3] ti-tisdk-makefile: add jailhouse target Jacob Stiffler
  1 sibling, 0 replies; 3+ messages in thread
From: Jacob Stiffler @ 2019-08-21 18:31 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb         | 4 ++++
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb     | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
index 19f2bcf..ec16713 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
@@ -36,6 +36,10 @@ UTILS_append_k2g = " \
     pru-icss-src \
 "
 
+UTILS_append_k3 = " \
+    jailhouse-src \
+"
+
 UTILS_append_am65xx = " \
     pru-icss-src \
 "
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
index eb39cad..3990dad 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
@@ -74,10 +74,11 @@ UTILS_append_k3 = " mmc-utils \
                     parted \
                     switch-config \
                     irqbalance \
+                    jailhouse \
 "
 
 UTILS_append_am65xx = " ipc-lld-fw ti-ipc-rtos-fw pru-icss"
-UTILS_append_j7-evm = " ipc-lld-fw ti-display-sharing-fw jailhouse"
+UTILS_append_j7-evm = " ipc-lld-fw ti-display-sharing-fw"
 
 UTILS_append_omapl138 = " ti-ipc-rtos-fw"
 
-- 
2.7.4



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

* [master/thud][PATCH 3/3] ti-tisdk-makefile: add jailhouse target
  2019-08-21 18:31 [master/thud][PATCH 1/3] arago-src-ipkd: configure jailhouse sourceipk Jacob Stiffler
  2019-08-21 18:31 ` [master/thud][PATCH 2/3] packagegroup: addons: add jailhouse for all k3 Jacob Stiffler
@ 2019-08-21 18:31 ` Jacob Stiffler
  1 sibling, 0 replies; 3+ messages in thread
From: Jacob Stiffler @ 2019-08-21 18:31 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../ti-tisdk-makefile/Makefile_jailhouse           | 44 ++++++++++++++++++++++
 .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb     |  6 +++
 2 files changed, 50 insertions(+)
 create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_jailhouse

diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_jailhouse b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_jailhouse
new file mode 100644
index 0000000..f5367c8
--- /dev/null
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_jailhouse
@@ -0,0 +1,44 @@
+# jailhouse module
+JH_ARCH = "__KERNEL_ARCH__"
+JH_PLATFORM = "__JH_PLATFORM__"
+
+jailhouse_config:
+	@echo =====================================
+	@echo      Configuring jailhouse
+	@echo =====================================
+	@cd board-support/extra-drivers; \
+	cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
+	cp -v ./ci/jailhouse-config-$(JH_PLATFORM).h ./include/jailhouse/config.h
+
+jailhouse: linux jailhouse_config
+	@echo =====================================
+	@echo      Building jailhouse
+	@echo =====================================
+	@cd board-support/extra-drivers; \
+	cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
+	make ARCH=$(JH_ARCH) KDIR=${LINUXKERNEL_INSTALL_DIR}
+
+jailhouse_clean:
+	@echo =====================================
+	@echo      Cleaning jailhouse
+	@echo =====================================
+	@cd board-support/extra-drivers; \
+	cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
+	make ARCH=$(JH_ARCH) KDIR=${LINUXKERNEL_INSTALL_DIR} clean
+
+jailhouse_distclean: jailhouse_clean
+	@echo =====================================
+	@echo      Distclean jailhouse
+	@echo =====================================
+	@cd board-support/extra-drivers; \
+	cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
+	rm -vf ./hypervisor/include/jailhouse/config.h
+
+jailhouse_install:
+	@echo ================================
+	@echo      Installing jailhouse
+	@echo ================================
+	@cd board-support/extra-drivers; \
+	cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
+	make ARCH=$(JH_ARCH) KDIR=${LINUXKERNEL_INSTALL_DIR} DESTDIR=$(DESTDIR) INSTALL_MOD_STRIP=$(INSTALL_MOD_STRIP) prefix=/usr install
+
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 271218f..99f6523 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
@@ -52,6 +52,7 @@ SRC_URI = "\
     file://Makefile_mmwavegesture-hmi \
     file://Makefile_pdm-anomaly-detection \
     file://Makefile_ti-ipc \
+    file://Makefile_jailhouse \
 "
 
 PR = "r100"
@@ -186,6 +187,7 @@ MAKEFILES_append_k3 = " u-boot-spl \
 			mmwavegesture-hmi \
                         pdm-anomaly-detection \
                         ti-ipc \
+                        jailhouse \
 "
 
 MAKEFILES_append_am65xx = " \
@@ -244,6 +246,9 @@ IPC_TOOLS_PATHS_append_omap-a15 = " ${IPC_TOOLS_PATHS_C66} ${IPC_TOOLS_PATHS_M4}
 IPC_TOOLS_PATHS_append_omapl138 = " ${IPC_TOOLS_PATHS_C674}"
 IPC_TOOLS_PATHS_append_k3 = "${IPC_TOOLS_PATHS_R5F}"
 
+# Populate Jailhouse config header
+JH_PLATFORM = "${MACHINE}"
+JH_PLATFORM_k3 = "k3"
 
 # If it's not defined at all, like for zImage case
 UBOOT_LOADADDRESS ?= "0"
@@ -310,6 +315,7 @@ do_install () {
     sed -i -e "s/__BOOT_MONITOR_MAKE_TARGET__/${BOOT_MONITOR_MAKE_TARGET}/g" ${D}/Makefile
     sed -i -e "s/__PRU_ICSS_INSTALL_TARGET__/${PRU_ICSS_INSTALL_TARGET}/g" ${D}/Makefile
     sed -i -e "s/__IPC_TOOLS_PATHS__/${IPC_TOOLS_PATHS}/g" ${D}/Makefile
+    sed -i -e "s/__JH_PLATFORM__/${JH_PLATFORM}/" ${D}/Makefile
     sed -i -e "s/__TISDK_VERSION__/${TISDK_VERSION}/g" ${D}/Makefile
 
     cat ${D}/Makefile | grep "__DTB_DEPEND__" > /dev/null
-- 
2.7.4



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

end of thread, other threads:[~2019-08-21 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-21 18:31 [master/thud][PATCH 1/3] arago-src-ipkd: configure jailhouse sourceipk Jacob Stiffler
2019-08-21 18:31 ` [master/thud][PATCH 2/3] packagegroup: addons: add jailhouse for all k3 Jacob Stiffler
2019-08-21 18:31 ` [master/thud][PATCH 3/3] ti-tisdk-makefile: add jailhouse target 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.