forked from phoenix-rtos/phoenix-rtos-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-core-armv7-imxrt.sh
executable file
·36 lines (29 loc) · 1.2 KB
/
build-core-armv7-imxrt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#
# Shell script for building Phoenix-RTOS firmware
#
# Builder for Phoenix-RTOS core components
#
# Copyright 2018, 2019 Phoenix Systems
# Author: Kaja Swat, Aleksander Kaminski, Pawel Pisarczyk, Lukasz Kosinski
#
b_log "Building phoenix-rtos-kernel"
KERNEL_MAKECMDGOALS="install-headers"
(cd phoenix-rtos-kernel/src && CFLAGS+=$KERNEL_CFLAGS make $MAKEFLAGS $CLEAN $KERNEL_MAKECMDGOALS all)
cp -a "phoenix-rtos-kernel/phoenix-${TARGET}.elf" _build
cp -a "phoenix-rtos-kernel/phoenix-${TARGET}.img" _build
b_log "Building libphoenix"
(cd libphoenix && make $MAKEFLAGS $CLEAN all install)
b_log "Building phoenix-rtos-filesystems"
(cd phoenix-rtos-filesystems && make $MAKEFLAGS $CLEAN all)
b_log "Building phoenix-rtos-devices"
(cd phoenix-rtos-devices && CFLAGS+=$DEVICES_CFLAGS make $MAKEFLAGS $CLEAN all)
b_log "Building phoenix-rtos-usb"
(cd phoenix-rtos-usb && make $MAKEFLAGS $CLEAN all)
b_log "Building coreutils"
(cd phoenix-rtos-coreutils && make $MAKEFLAGS $CLEAN all)
b_log "Building hostutils"
(cd phoenix-rtos-hostutils/ && make $MAKEFLAGS $CLEAN all)
mkdir -p "$PREFIX_BOOT"
cp "$PREFIX_BUILD_HOST/prog.stripped/phoenixd" $PREFIX_BOOT
cp "$PREFIX_BUILD_HOST/prog.stripped/psu" $PREFIX_BOOT