-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
111 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Shell script for building Phoenix-RTOS firmware | ||
# | ||
# Builder for Phoenix-RTOS core components | ||
# | ||
# Copyright 2018-2024 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" | ||
make -C "phoenix-rtos-kernel" all | ||
|
||
if [ "$LIBPHOENIX_DEVEL_MODE" = "y" ]; then | ||
make -C "phoenix-rtos-kernel" install-headers | ||
|
||
b_log "Building libphoenix" | ||
make -C "libphoenix" all install | ||
fi | ||
|
||
b_log "Building libtty" | ||
make -C "phoenix-rtos-devices" libtty libtty-install | ||
|
||
b_log "Building libposixsrv" | ||
make -C "phoenix-rtos-posixsrv" libposixsrv libposixsrv-install | ||
|
||
b_log "Building phoenix-rtos-corelibs" | ||
make -C "phoenix-rtos-corelibs" all | ||
|
||
b_log "Building phoenix-rtos-filesystems" | ||
make -C "phoenix-rtos-filesystems" all install | ||
|
||
b_log "Building phoenix-rtos-devices" | ||
make -C "phoenix-rtos-devices" all install | ||
|
||
b_log "Building coreutils" | ||
make -C "phoenix-rtos-utils" all install | ||
|
||
if [ "$CORE_NETWORKING_DISABLE" != "y" ]; then | ||
b_log "phoenix-rtos-lwip" | ||
make -C "phoenix-rtos-lwip" all install | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Makefile for libphoenix | ||
# Makefile for Phoenix-RTOS 3 | ||
# | ||
# ARM (Cortex-A5/A7/A9) options | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Makefile for libphoenix | ||
# Makefile for Phoenix-RTOS 3 | ||
# | ||
# ARMv7 (Cortex-M3/M4) options | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Makefile for Phoenix-RTOS 3 | ||
# | ||
# ARMv8 (Cortex-M33) options | ||
# | ||
# Copyright 2018, 2020, 2024 Phoenix Systems | ||
# | ||
|
||
CROSS ?= arm-phoenix- | ||
|
||
CC := $(CROSS)gcc | ||
CXX := $(CROSS)g++ | ||
|
||
# common Cortex-M CFLAGS | ||
OLVL ?= -O2 | ||
CFLAGS += -mthumb -fomit-frame-pointer -mno-unaligned-access | ||
|
||
# TODO hard float perhaps? To be decided | ||
CFLAGS += -mcpu=cortex-m33 -mfloat-abi=soft -fstack-usage | ||
|
||
VADDR_KERNEL_INIT := $(KERNEL_PHADDR) | ||
|
||
LDFLAGS := -Wl,-z,max-page-size=0x10 | ||
|
||
ifeq ($(KERNEL), 1) | ||
CFLAGS += -ffixed-r9 | ||
LDFLAGS += -Tbss=20000000 -Tdata=20000000 | ||
STRIP := $(CROSS)strip | ||
else | ||
CFLAGS += -fpic -fpie -msingle-pic-base -mno-pic-data-is-text-relative | ||
# output .rel.* sections to make ELF position-independent | ||
LDFLAGS += -Wl,-q | ||
STRIP := $(PREFIX_PROJECT)/phoenix-rtos-build/scripts/strip.py $(CROSS)strip --strip-unneeded -R .rel.text | ||
endif | ||
|
||
CXXFLAGS := $(CFLAGS) | ||
|
||
AR := $(CROSS)ar | ||
ARFLAGS := -r | ||
|
||
LD := $(CROSS)gcc | ||
LDFLAGS_PREFIX := -Wl, | ||
|
||
OBJCOPY := $(CROSS)objcopy | ||
OBJDUMP := $(CROSS)objdump | ||
|
||
HAVE_MMU := n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Common Makefile for host | ||
# Makefile for Phoenix-RTOS 3 | ||
# | ||
# Copyright 2018-2021 Phoenix Systems | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Makefile for libphoenix | ||
# Makefile for Phoenix-RTOS 3 | ||
# | ||
# IA32 options | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Makefile for libphoenix | ||
# Makefile for Phoenix-RTOS 3 | ||
# | ||
# RISCV64 options | ||
# | ||
|