doc/user_manual.md: update ISAR_CROSS_COMPILE variable in SDK part

Message ID 20240829112138.832662-1-srinuvasan.a@siemens.com
State Superseded, archived
Headers show
Series doc/user_manual.md: update ISAR_CROSS_COMPILE variable in SDK part | expand

Commit Message

Arjunan, Srinu Aug. 29, 2024, 11:21 a.m. UTC
From: Srinuvasan A <srinuvasan.a@siemens.com>

With the present documentation the SDK is not generated properly for
foreign architectures, basically SDK_TOOLCAHIN not picking the proper
toolchain due to mode is not properly set for foreign architecture.

Set ISAR_CROSS_COMPILE by 1 in local.conf to get the correct mode for
foreign architecture.

Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
---
 doc/user_manual.md | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Comments

Jan Kiszka Aug. 29, 2024, 11:28 a.m. UTC | #1
On 29.08.24 13:21, srinuvasan.a@siemens.com wrote:
> From: Srinuvasan A <srinuvasan.a@siemens.com>
> 
> With the present documentation the SDK is not generated properly for
> foreign architectures, basically SDK_TOOLCAHIN not picking the proper
> toolchain due to mode is not properly set for foreign architecture.
> 
> Set ISAR_CROSS_COMPILE by 1 in local.conf to get the correct mode for
> foreign architecture.
> 
> Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
> ---
>  doc/user_manual.md | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index 575aa114..d2a3e484 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -1195,6 +1195,12 @@ One may chroot into the SDK and install required target packages with the help o
>  
>  ```
>  SDK_INCLUDE_ISAR_APT = "1"
> +```
> +
> + - Set ISAR_CROSS_COMPILE by 1 for foreign architectures
> +
> +```
> +ISAR_CROSS_COMPILE = "1"
>  ```
>  
>   - Trigger creation of SDK root filesystem
> @@ -1212,7 +1218,7 @@ sudo tar xf tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuar
>   - Mount the following directories in chroot by passing resulting rootfs as an argument to the script `mount_chroot.sh`:
>  
>  ```
> -cat ../scripts/mount_chroot.sh
> +cat ../isar/scripts/mount_chroot.sh

Unrelated changes, also below. Also, you missed another case under
"Build statistics collection".

And ".." can still be confusing here (and below). Maybe rather

"/path-to-isar/scripts/..."

Jan

>  #!/bin/sh
>  
>  set -e
> @@ -1224,7 +1230,7 @@ mount devtmpfs $1/dev     -t devtmpfs -o mode=0755,nosuid
>  mount devpts   $1/dev/pts -t devpts   -o gid=5,mode=620
>  mount tmpfs    $1/dev/shm -t tmpfs    -o rw,seclabel,nosuid,nodev
>  
> -sudo ../scripts/mount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
> +sudo ../isar/scripts/mount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
>  
>  ```
>  
> @@ -1277,7 +1283,7 @@ public nameserver like:
>   - Unmount rootfs paths:
>  
>  ```
> -sudo ../scripts/umount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
> +sudo ../isar/scripts/umount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
>  ```
>  
>  ## Create a containerized Isar SDK root filesystem

Patch

diff --git a/doc/user_manual.md b/doc/user_manual.md
index 575aa114..d2a3e484 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -1195,6 +1195,12 @@  One may chroot into the SDK and install required target packages with the help o
 
 ```
 SDK_INCLUDE_ISAR_APT = "1"
+```
+
+ - Set ISAR_CROSS_COMPILE by 1 for foreign architectures
+
+```
+ISAR_CROSS_COMPILE = "1"
 ```
 
  - Trigger creation of SDK root filesystem
@@ -1212,7 +1218,7 @@  sudo tar xf tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuar
  - Mount the following directories in chroot by passing resulting rootfs as an argument to the script `mount_chroot.sh`:
 
 ```
-cat ../scripts/mount_chroot.sh
+cat ../isar/scripts/mount_chroot.sh
 #!/bin/sh
 
 set -e
@@ -1224,7 +1230,7 @@  mount devtmpfs $1/dev     -t devtmpfs -o mode=0755,nosuid
 mount devpts   $1/dev/pts -t devpts   -o gid=5,mode=620
 mount tmpfs    $1/dev/shm -t tmpfs    -o rw,seclabel,nosuid,nodev
 
-sudo ../scripts/mount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
+sudo ../isar/scripts/mount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
 
 ```
 
@@ -1277,7 +1283,7 @@  public nameserver like:
  - Unmount rootfs paths:
 
 ```
-sudo ../scripts/umount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
+sudo ../isar/scripts/umount_chroot.sh tmp/deploy/images/qemuarm/isar-image-base-sdk-debian-bullseye-qemuarm
 ```
 
 ## Create a containerized Isar SDK root filesystem