forked from phoenix-rtos/phoenix-rtos-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-core-armv7a7-imx6ull.sh
executable file
·58 lines (47 loc) · 1.95 KB
/
build-core-armv7a7-imx6ull.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/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
#
# fail immediately if any of the commands fails
set -e
b_log "Building phoenix-rtos-kernel"
KERNEL_MAKECMDGOALS="install-headers"
(cd phoenix-rtos-kernel && make $MAKEFLAGS $CLEAN $KERNEL_MAKECMDGOALS all)
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_install "$PREFIX_PROG_STRIPPED/dummyfs" /sbin
b_log "Building phoenix-rtos-devices"
(cd phoenix-rtos-devices && make $MAKEFLAGS $CLEAN all)
b_install "$PREFIX_PROG_STRIPPED/imx6ull-gpio" /sbin
b_install "$PREFIX_PROG_STRIPPED/imx6ull-uart" /sbin
b_install "$PREFIX_PROG_STRIPPED/imx6ull-sdma" /sbin
b_install "$PREFIX_PROG_STRIPPED/imx6ull-nandtool" /sbin
b_install "$PREFIX_PROG_STRIPPED/imx6ull-flash" /sbin
b_install "$PREFIX_PROG_STRIPPED/imx6ull-otp" /sbin
b_log "Building phoenix-rtos-usb"
(cd phoenix-rtos-usb && make $MAKEFLAGS $CLEAN all)
b_install "$PREFIX_PROG_STRIPPED/hostsrv" /sbin
b_log "Building coreutils"
(cd phoenix-rtos-utils && make $MAKEFLAGS $CLEAN all)
b_install $PREFIX_PROG_STRIPPED/psh /bin
b_install $PREFIX_PROG_STRIPPED/psd /sbin
b_install $PREFIX_PROG_STRIPPED/psd-old /sbin
#b_log "phoenix-rtos-lwip"
#(cd phoenix-rtos-lwip && make $MAKEFLAGS $CLEAN all)
#b_install "$PREFIX_PROG_STRIPPED/lwip" /sbin
#b_log "Building posixsrv"
#(cd phoenix-rtos-posixsrv && make $MAKEFLAGS $CLEAN all)
#b_install "$PREFIX_PROG_STRIPPED/posixsrv" /bin
b_log "Building hostutils"
(cd phoenix-rtos-hostutils/ && make -f Makefile.old $MAKEFLAGS $CLEAN all)
cp "$PREFIX_BUILD_HOST/prog.stripped/phoenixd" "$PREFIX_BOOT"
cp "$PREFIX_BUILD_HOST/prog.stripped/psu" "$PREFIX_BOOT"
b_log "Building phoenix-rtos-corelibs"
(cd phoenix-rtos-corelibs/ && make $MAKEFLAGS $CLEAN all)