Added customization directory, updated build instructions.

This commit is contained in:
imi415 2021-06-12 22:53:04 +08:00
parent e4485c57e1
commit 8c7af2d8f3
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
5 changed files with 26 additions and 3 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/output
/customizations/users.table
/customizations/overlay/

View File

@ -1,2 +1,19 @@
SystemAgent - Base system port
# SystemAgent - Base system port
This is the project for SystemAgent compatible SBCs.
## How to build the same image
* Clone buildroot repository.
* Set `BUILDROOT_PATH` environment variable accordingly.
* Run `buildroot_make.sh xxxx_defconfig` (see `configs`).
* Run `buildroot_make.sh nconfig` to make your changes.
* Run `buildroot_make.sh` to start your runs.
## Necessary modifications
### Add new users
Edit users.table in `customizations` directory.
### Copy whatever you want into the filesystem
Add them to the `customizations/overlay` directory, if the directory does not exist, create it.

View File

@ -20,6 +20,8 @@ BR2_SYSTEM_BIN_SH_BASH=y
BR2_SYSTEM_DEFAULT_PATH="/bin:/sbin:/usr/bin:/usr/sbin"
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_TARGET_LOCALTIME="Asia/Tokyo"
BR2_ROOTFS_USERS_TABLES="$(BR2_EXTERNAL_system_agent_PATH)/customizations/users.table"
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_system_agent_PATH)/customizations/overlay"
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/iminc/orangepi-pc-system-agent/genimage.cfg"
BR2_LINUX_KERNEL=y
@ -46,6 +48,7 @@ BR2_PACKAGE_NETWORK_MANAGER_TUI=y
BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER=y
BR2_PACKAGE_OPENSSH=y
BR2_PACKAGE_BASH_COMPLETION=y
BR2_PACKAGE_SUDO=y
BR2_PACKAGE_VIM=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y

View File

@ -0,0 +1 @@
# See https://buildroot.org/downloads/manual/manual.html#makeuser-syntax for documentation.

View File

@ -1,3 +1,3 @@
name: orangepi_pc_system_agent
desc: System Agent port for OrangePi PC
name: system_agent
desc: System Agent base system