diff options
author | Evan Lojewski <github@meklort.com> | 2020-11-07 17:57:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 17:57:34 -0700 |
commit | e86f52c7073e3ce983c5e7e93286eb9a73fd8ba8 (patch) | |
tree | e450aa708affb411a908ee84272984539fe19d17 /libs | |
parent | 86e905d8e482562b78bff17e68f5cf0e1537cf2f (diff) | |
download | bcm5719-ortega-e86f52c7073e3ce983c5e7e93286eb9a73fd8ba8.tar.gz bcm5719-ortega-e86f52c7073e3ce983c5e7e93286eb9a73fd8ba8.zip |
build: Enable builds under FreeBSD (#164)
This fixes build related issues when attempting to compile firmware and tools under FreeBSD.
Note: Host tools have not been ported for raw register access.
Note: The Linux specific ethtool APIs are not available under FreeBSD, and so -t eth is not supported under FreeBSD.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/NCSI/tests/tests.cpp | 2 | ||||
-rw-r--r-- | libs/Network/CMakeLists.txt | 4 | ||||
-rw-r--r-- | libs/Network/tx.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/libs/NCSI/tests/tests.cpp b/libs/NCSI/tests/tests.cpp index 1bae4fc..0f916b2 100644 --- a/libs/NCSI/tests/tests.cpp +++ b/libs/NCSI/tests/tests.cpp @@ -3,7 +3,7 @@ #include <APE_APE_PERI.h> #include <Ethernet.h> #include <NCSI.h> -#include <endian.h> +#include <bcm5719-endian.h> uint32_t *gPacket; uint32_t gPacketLen; diff --git a/libs/Network/CMakeLists.txt b/libs/Network/CMakeLists.txt index b0fb993..e3c488a 100644 --- a/libs/Network/CMakeLists.txt +++ b/libs/Network/CMakeLists.txt @@ -2,7 +2,7 @@ ### ### @file libs/Network/CMakeLists.txt ### -### @project +### @project ### ### @brief Network CMake file ### @@ -67,3 +67,5 @@ target_include_directories(${PROJECT_NAME}-arm PUBLIC include) format_target_sources(${PROJECT_NAME}) # add_subdirectory(tests) + +ADD_ENDIANNESS_DEFINES(${PROJECT_NAME}) diff --git a/libs/Network/tx.c b/libs/Network/tx.c index 5c89f51..67ceaf0 100644 --- a/libs/Network/tx.c +++ b/libs/Network/tx.c @@ -50,7 +50,7 @@ #include <types.h> #ifdef CXX_SIMULATOR -#include <endian.h> +#include <bcm5719-endian.h> #include <stdio.h> #else #include <printf.h> |