Skip to content

Commit

Permalink
更新编译脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdemao committed Nov 3, 2024
1 parent 7c75f4a commit 94a7262
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,28 @@
```shell
./compiler.sh arm 6
./compiler.sh aarch64 6
./compiler.sh x86_64 6
```

## 构建SDK与demo

1. arm

```shell
./build.sh arm stm32f4
./build.sh aarch64 a72_lp64_qemu
./build.sh arm raspberrypi2
```

## 模拟运行
2. aarch64

```shell
./build.sh aarch64 a72_lp64_qemu
./build.sh aarch64 raspberrypi4
```

```
3. x86_64

```shell
./build.sh x86_64 amd64
./build.sh x86_64 amd64efi
```
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ build_rtems_tools()
pushd rtems/tools >> /dev/null || exit
./waf distclean
./waf configure --prefix=${PREFIX_PATH}
./waf build install
./waf build -j$(nproc)
./waf install
popd >> /dev/null || exit
}

Expand Down Expand Up @@ -43,7 +44,7 @@ build_rtems_demo()
./waf configure --rtems=${PREFIX_PATH} \
--rtems-tools=${PREFIX_PATH}\
--rtems-bsps=${RTMES_ARCH}/${RTMES_BSP}
./waf -v
./waf -j$(nproc)
popd >> /dev/null || exit
}

Expand Down
6 changes: 3 additions & 3 deletions compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export RTMES_ARCH=$1
export RTEMS_VERSION=$2
export PREFIX_PATH=${INSTALL_PATH}/rtems-${RTMES_ARCH}

# pushd rtems/rsb/rtems >>/dev/null || exit
# ../source-builder/sb-set-builder --prefix=${PREFIX_PATH} ${RTEMS_VERSION}/rtems-${RTMES_ARCH}.bset --jobs=$(nproc)
# popd >>/dev/null || exit
pushd rtems/rsb/rtems >>/dev/null || exit
../source-builder/sb-set-builder --prefix=${PREFIX_PATH} ${RTEMS_VERSION}/rtems-${RTMES_ARCH}.bset --jobs=$(nproc)
popd >>/dev/null || exit

pushd ${PREFIX_PATH}

Expand Down

0 comments on commit 94a7262

Please sign in to comment.