-
Notifications
You must be signed in to change notification settings - Fork 18
generalize rcar_s4 bundle #534
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,11 +1,11 @@ | ||||||||||||||||||||||
| #!/bin/bash | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| dnf install --setopt=install_weak_deps=false -y git make gcc gcc-c++ which file diffutils wget cpio rsync bc lzop zip patch perl tar qemu-system-aarch64 qemu-img unzboot uboot-tools kmod | ||||||||||||||||||||||
| dnf install --setopt=install_weak_deps=false -y git make gcc gcc-c++ which file diffutils wget cpio rsync bc lzop zip patch perl tar qemu-system-aarch64 qemu-img unzboot uboot-tools kmod awk | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| git clone --depth 1 --branch 2025.05-rc2 https://github.com/buildroot/buildroot /buildroot | ||||||||||||||||||||||
| git clone --depth 1 --branch 2025.05 https://github.com/buildroot/buildroot /buildroot | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| ./add_kernel.sh | ||||||||||||||||||||||
| ./replace_kernel.sh | ||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Harden the script and fail fast around
#!/bin/bash
+set -euo pipefail
+
+if [[ ! -x ./replace_kernel.sh ]]; then
+ echo "replace_kernel.sh is missing or not executable"; exit 1
+fi
./replace_kernel.sh📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| cp -R overlay /buildroot | ||||||||||||||||||||||
| cp renesas_s4_defconfig /buildroot/configs/ | ||||||||||||||||||||||
| ( cd /buildroot; make renesas_s4_defconfig && make ) | ||||||||||||||||||||||
| cp rootfs_only_defconfig /buildroot/configs/ | ||||||||||||||||||||||
| ( cd /buildroot; make rootfs_only_defconfig && make ) | ||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Address ShellCheck SC2164: check If -( cd /buildroot; make rootfs_only_defconfig && make )
+(
+ cd /buildroot || { echo "ERROR: /buildroot not found"; exit 1; }
+ make rootfs_only_defconfig
+ make # consider: make -j"$(nproc)" for speed
+)📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.10.0)[warning] 10-10: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. (SC2164) 🤖 Prompt for AI Agents |
||||||||||||||||||||||
| mkimage -f flasher.its data/flasher.itb | ||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # rename Renesas S4 main interface tsn0 to eth0 to unify setup | ||
| SUBSYSTEM=="net", ACTION=="add", KERNEL=="tsn0", NAME="eth0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Pin Buildroot to a tag/commit for reproducible builds.
Cloning the moving
2025.05branch with--depth 1risks non-deterministic results when the branch head moves. Prefer a fixed tag or commit SHA and document it.🤖 Prompt for AI Agents