mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
1431bebd80
Integrate buildroot into devlib in order to ease building kernel and root filesystem images via 'generate-kernel-initrd.sh' helper script. As its name suggests, the script builds kernel image which also includes an initial RAM disk per default config files located under configs/<arch>/. Provide config files for buildroot and Linux kernel as well as a post-build.sh script which tweaks (e.g., allowing root login on SSH) target's root filesystem. doc/tools.rst talks about details of kernel and rootfs configuration. Signed-off-by: Metin Kaya <metin.kaya@arm.com>
16 lines
500 B
Bash
Executable File
16 lines
500 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
# Enable root login on SSH
|
|
sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' "${TARGET_DIR}/etc/ssh/sshd_config"
|
|
|
|
# Increase the number of available channels so that devlib async code can
|
|
# exploit concurrency better.
|
|
sed -i 's/#MaxSessions.*/MaxSessions 100/' "${TARGET_DIR}/etc/ssh/sshd_config"
|
|
sed -i 's/#MaxStartups.*/MaxStartups 100/' "${TARGET_DIR}/etc/ssh/sshd_config"
|
|
|
|
# To test Android bindings of ChromeOsTarget
|
|
mkdir -p "${TARGET_DIR}/opt/google/containers/android"
|
|
|