diff --git a/README.en.md b/README.en.md index 283774152e83e60218c6cddd73e8336a68ad569f..f8d490e08898f5a6cbf2ad0c4aefca3410682723 100644 --- a/README.en.md +++ b/README.en.md @@ -1,22 +1,25 @@ # raspberrypi-build #### Description + Scripts of building images for Raspberry Pi #### Software Architecture -Software architecture description + +AArch64 #### Installation -1. xxxx -2. xxxx -3. xxxx +`dnf install raspberrypi-build` #### Instructions -1. xxxx -2. xxxx -3. xxxx +After installing raspberrypi-build, you can find the scripts and related files for building openEuler image of Raspberry Pi in `/opt/raspi-image-build`. + +To build an image, run `sudo bash create-image.sh OUTDIR`, where `OUTDIR` is the directory for storing the image and other temporary files. If `OUTDIR` does not exist, it will be created automatically. + +After building the image, you can find the image in `OUTDIR/raspi_output/img/` as shown in the script output. + #### Contribution diff --git a/README.md b/README.md index cb609c74c3c6b2ea36ba4f996d5613b035ea6b48..3f740f24fca4a1f6ce2956aea4a06b9fe3e72bc8 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ # raspberrypi-build #### 介绍 -Scripts of building images for Raspberry Pi + +树莓派镜像构建脚本程序。 #### 软件架构 -软件架构说明 +AArch64 #### 安装教程 -1. xxxx -2. xxxx -3. xxxx +`dnf install raspberrypi-build` #### 使用说明 -1. xxxx -2. xxxx -3. xxxx +安装 raspberrypi-build 后,树莓派镜像构建的脚本及相关文件会保存在 `/opt/raspi-image-build`。 + +构建镜像需执行 `sudo bash create-image.sh OUTDIR`,其中 `OUTDIR` 为构建镜像的输出目录,如不存在则会自动创建。脚本运行结束后,会提示镜像的存储位置,默认保存在 `OUTDIR/raspi_output/img/` 下。 + #### 参与贡献 diff --git a/raspberrypi-build.spec b/raspberrypi-build.spec new file mode 100644 index 0000000000000000000000000000000000000000..a26854c6f54427e5171b8d51cc9b827e6899950e --- /dev/null +++ b/raspberrypi-build.spec @@ -0,0 +1,30 @@ +%global debug_package %{nil} + +Name: raspberrypi-build +Version: 0.1 +Release: 1 +Summary: Scripts of building images for RaspberryPi +License: Mulan v2 +ExclusiveArch: aarch64 + +Provides: raspberrypi-build = %{version}-%{release} + +Source0: raspi-image-build.tar.gz + +%description +Scripts of building images for Raspberry Pi + +%prep +%setup -q -c + +%install +mkdir -p %{buildroot}/opt/raspi-image-build +install -p -m 644 raspi-image-build/* %{buildroot}/opt/raspi-image-build + +%files +/opt/raspi-image-build + + +%changelog +* Thu Jun 11 2020 EulixOS Buildteam - 0.1-1 +- Init package with build scripts. \ No newline at end of file diff --git a/raspi-image-build.tar.gz b/raspi-image-build.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b32c469ab8d1fbf4ebf60a1579f48196eea1ce2b Binary files /dev/null and b/raspi-image-build.tar.gz differ