-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 64-bit ARM Linux as a OpenMRN target. Initially supporting my Banana Pi M64 (Allwinner A64 SBC with a Raspberry Pi B+ form factor, including the Raspberry Pi 40-pin GPIO header. I'm guessing this will also support a 'Pi 4 or really any 64-bit ARM Linux SBC running a 64-bit (aarch64) Linux O/S. This is *lightly* tested -- I built and tested the hub application. Not sure how to run more detailed tests. Authored-by: Robert Heller <[email protected]>
- Loading branch information
1 parent
a2dee1e
commit 57f2812
Showing
13 changed files
with
73 additions
and
0 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,3 @@ | ||
-include ../../config.mk | ||
include $(OPENMRNPATH)/etc/prog.mk | ||
|
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 @@ | ||
# Get the toolchain paths for openmrn | ||
include $(OPENMRNPATH)/etc/path.mk | ||
|
||
|
||
ifndef TOOLPATH | ||
#TOOLPATHCOMMAND := $(shell \ | ||
#sh -c "which aarch64-linux-gnu-gcc" \ | ||
#) | ||
TOOLPATH := $(AARCH64LINUXGCCPATH) | ||
endif | ||
|
||
$(info armv7alinux toolpath '$(TOOLPATH)') | ||
|
||
# Get the $(CFLAGSENV), $(CXXFLAGSENV), $(LDFLAGSENV) | ||
include $(OPENMRNPATH)/etc/env.mk | ||
|
||
CC = $(TOOLPATH)/aarch64-linux-gnu-gcc | ||
CXX = $(TOOLPATH)/aarch64-linux-gnu-g++ | ||
AR = $(TOOLPATH)/aarch64-linux-gnu-ar | ||
LD = $(TOOLPATH)/aarch64-linux-gnu-g++ | ||
OBJDUMP = $(TOOLPATH)/aarch64-linux-gnu-objdump | ||
|
||
AROPTS=D | ||
|
||
HOST_TARGET := 1 | ||
|
||
STARTGROUP := -Wl,--start-group | ||
ENDGROUP := -Wl,--end-group | ||
|
||
ARCHOPTIMIZATION = -g3 -O0 -march=armv8-a | ||
|
||
CSHAREDFLAGS = -c $(ARCHOPTIMIZATION) -Wall -Werror -Wno-unknown-pragmas \ | ||
-MD -MP -fno-stack-protector -D_GNU_SOURCE | ||
|
||
CFLAGS = $(CSHAREDFLAGS) -std=gnu99 | ||
|
||
CXXFLAGS = $(CSHAREDFLAGS) -std=c++0x -D__STDC_FORMAT_MACROS \ | ||
-D__STDC_LIMIT_MACROS -D__USE_LIBSTDCPP__ | ||
|
||
LDFLAGS = $(ARCHOPTIMIZATION) -Wl,-Map="$(@:%=%.map)" | ||
SYSLIB_SUBDIRS += | ||
SYSLIBRARIES = -lrt -lpthread | ||
|
||
EXTENTION = | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(OPENMRNPATH)/etc/core_target.mk |
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,3 @@ | ||
OPENMRNPATH ?= $(realpath ../../..) | ||
include $(OPENMRNPATH)/etc/lib.mk | ||
|
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 @@ | ||
include $(OPENMRNPATH)/etc/lib.mk |
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 @@ | ||
include $(OPENMRNPATH)/etc/lib.mk |
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 @@ | ||
include $(OPENMRNPATH)/etc/lib.mk |
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 @@ | ||
include $(OPENMRNPATH)/etc/target_lib.mk |
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 @@ | ||
include $(OPENMRNPATH)/etc/lib.mk |
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,3 @@ | ||
OPENMRNPATH ?= $(realpath ../../..) | ||
include $(OPENMRNPATH)/etc/lib.mk | ||
|
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 @@ | ||
include $(OPENMRNPATH)/etc/lib.mk |
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 @@ | ||
include $(OPENMRNPATH)/etc/lib.mk |