makefile hosted update

This commit is contained in:
Robin Müller 2020-12-21 17:52:53 +01:00 committed by Robin Mueller
parent f52d615196
commit 5d2da2bf60
2 changed files with 11 additions and 3 deletions

View File

@ -17,12 +17,12 @@ CUSTOM_DEFINES :=
# (can be overriden by adding CHIP=chip and BOARD=board to the command-line)
BOARD_FILE_ROOT = bsp_hosted
BOARD = host
OS_FSFW = host
CUSTOM_DEFINES += -D$(OS_FSFW)
DETECTED_OS :=
# Copied from stackoverflow, can be used to differentiate between Windows
# and Linux
ifeq ($(OS),Windows_NT)
DETECTED_OS = WINDOWS
CUSTOM_DEFINES += -DWIN32
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64)
CUSTOM_DEFINES += -DAMD64
@ -55,6 +55,14 @@ else
endif
endif
ifeq (${DETECTED_OS}, WINDOWS)
OS_FSFW = host
else
OS_FSFW = linux
endif
CUSTOM_DEFINES += -D$(OS_FSFW)
# General folder paths
FRAMEWORK_PATH = fsfw
MISSION_PATH = mission

2
tmtc

@ -1 +1 @@
Subproject commit e0c896e62d25286d00599ca57b71d0a3495ed95f
Subproject commit 07b6a9df18baff999ca52c2f2781f8f77f8dcb65