Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
8846ef04
Commit
8846ef04
authored
Jul 27, 2019
by
Jerome Hugues
Browse files
* Work in progress to restore AIR support
parent
cb11002a
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/make/Makefile.air
View file @
8846ef04
...
@@ -6,16 +6,19 @@
...
@@ -6,16 +6,19 @@
## This file has been built for a generic RTEMS integration
## This file has been built for a generic RTEMS integration
MANAGERS
=
all
MANAGERS
=
sem rtmon msg timer io
LIBS
=
-lrtemsall
-lc
LIBS
=
#-lrtemsall -lc
RTEMS_USES_NEWLIB
=
no
# PolyOR
b
-HI/C specific flags
# PolyOR
B
-HI/C specific flags
POHI_CFLAGS
=
-DRTEMS_POSIX
-DLEON_RTEMS
$(GCC_GENERIC_FLAGS)
POHI_CFLAGS
=
-DRTEMS_POSIX
-DLEON_RTEMS
$(GCC_GENERIC_FLAGS)
# RTEMS/AIR specific flags
# RTEMS/AIR specific flags
POHI_CFLAGS
+=
-DAIR_HYPERVISOR
-I
$(AIR_ROOT)
/pmk/core/include
\
POHI_CFLAGS
+=
-DAIR_HYPERVISOR
-I
$(AIR_ROOT)
/pmk/core/include
\
-I
$(AIR_ROOT)
/pmk/arch/sparc/include
\
-I
$(AIR_ROOT)
/pmk/arch/sparc/include
\
-I
$(AIR_ROOT)
/install/libs/imaspex/include/
-I
$(AIR_ROOT)
/install/libs/imaspex/include/
-I
./
-B
./
-I
../common/
\
-B
../common/
-DRTEMS5
-B
$(AIR_LIBS)
/imaspex/
-B
$(AIR_LIBS)
/libprintf/
\
-B
$(AIR_LIBS)
/libair/
LD_LIBS
=
$(AIR_LIBS)
/libprintf/libprintf.a
\
LD_LIBS
=
$(AIR_LIBS)
/libprintf/libprintf.a
\
$(AIR_LIBS)
/libair/libair.a
$(AIR_LIBS)
/imaspex/imaspex.a
$(AIR_LIBS)
/libair/libair.a
$(AIR_LIBS)
/imaspex/imaspex.a
...
@@ -23,12 +26,19 @@ $(AIR_LIBS)/libair/libair.a $(AIR_LIBS)/imaspex/imaspex.a
...
@@ -23,12 +26,19 @@ $(AIR_LIBS)/libair/libair.a $(AIR_LIBS)/imaspex/imaspex.a
LINK_LIBS
+=
$(AIR_LIBS)
/libprintf/libprintf.a
\
LINK_LIBS
+=
$(AIR_LIBS)
/libprintf/libprintf.a
\
$(AIR_LIBS)
/libair/libair.a
$(AIR_LIBS)
/imaspex/imaspex.a
$(AIR_LIBS)
/libair/libair.a
$(AIR_LIBS)
/imaspex/imaspex.a
# The RTEMS_MAKEFILE_PATH is defined by the user for the specific CPU and BSP
RTEMS_MAKEFILE_PATH
=
$(AIR_POS)
/rtems5/rtems5-install/sparc-rtems5/leon3
-include
$(RTEMS_MAKEFILE_PATH)/Makefile.inc
-include
$(RTEMS_MAKEFILE_PATH)/Makefile.inc
-include
$(RTEMS_CUSTOM)
-include
$(RTEMS_CUSTOM)
-include
$(PROJECT_ROOT)/make/leaf.cfg
-include
$(PROJECT_ROOT)/make/leaf.cfg
CPPFLAGS
+=
-DAIR_HYPERVISOR
./
-I
./
-B
./
-I
../common/
-B
../common/
\
-DRTEMS5
-B
$(AIR_LIBS)
/imaspex/
-B
$(AIR_LIBS)
/libprintf/
\
-B
$(AIR_LIBS)
/libair/
CPPFLAGS
+=
-DAIR_HYPERVISOR
./
-I
./
-B
./
-I
../common/
-B
../common/
-B
$(AIR_LIBS)
/libprintf/
-B
$(AIR_LIBS)
/libair/
TARGET_LDFLAGS
+=
-Wl
,--gc-sections
-Wl
,--wrap
=
printf
-Wl
,--wrap
=
puts
\
-Wl
,--wrap
=
putchar
##############################################################################
##############################################################################
# RTEMS_API is defined as part of RTEMS BSP Makefile. It reports the
# RTEMS_API is defined as part of RTEMS BSP Makefile. It reports the
...
@@ -61,8 +71,8 @@ ifeq ($(RTEMS_API),4.12)
...
@@ -61,8 +71,8 @@ ifeq ($(RTEMS_API),4.12)
endif
endif
ifeq
($(RTEMS_API),5)
ifeq
($(RTEMS_API),5)
POHI_CFLAGS
+=
-DRTEMS
412
POHI_CFLAGS
+=
-DRTEMS
5
TARGET_LDFLAGS
+=
-L
$(RUNTIME_PATH)
/libs/leon-rtems4.12/
-lm
TARGET_LDFLAGS
+=
-lm
endif
endif
##############################################################################
##############################################################################
...
@@ -91,20 +101,8 @@ ifeq ($(RTEMS_BSP),leon2)
...
@@ -91,20 +101,8 @@ ifeq ($(RTEMS_BSP),leon2)
POHI_CFLAGS
+=
-DGRLEON2
POHI_CFLAGS
+=
-DGRLEON2
endif
endif
ifdef
USE_GPROF
TARGET_LDFLAGS
+=
-Wl
,--wrap,Clock_isr
-pg
EXTERNAL_OBJECTS
+=
po_hi_gprof_rtems_leon.o
TARGET_INCLUDE
+=
-I
$(RTEMS_MAKEFILE_PATH)
/lib/include/
target-objects
:
$(CC)
$(INCLUDE)
$(TARGET_INCLUDE)
-D__PO_HI_USE_GPROF
-Wall
-c
-o
po_hi_gprof_rtems_leon.o
$(RUNTIME_PATH)
/src/po_hi_gprof_rtems_leon.c
else
target-objects
:
endif
LINK_LIBS
+=
-lm
LINK_LIBS
+=
-lm
emulate-qemu
:
$(BINARY)
qemu-system-sparc
-M
at697
-nographic
-kernel
$(BINARY)
.exe
target-clean
:
target-clean
:
target-objects
:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment