From e86f52c7073e3ce983c5e7e93286eb9a73fd8ba8 Mon Sep 17 00:00:00 2001 From: Evan Lojewski Date: Sat, 7 Nov 2020 17:57:34 -0700 Subject: 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. --- libs/NCSI/tests/tests.cpp | 2 +- libs/Network/CMakeLists.txt | 4 +++- libs/Network/tx.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'libs') 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 #include #include -#include +#include 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 #ifdef CXX_SIMULATOR -#include +#include #include #else #include -- cgit v1.2.1