picoserver: Create settings.cmake Setting LibPicotcp=ON in a settings.cmake will remove picotcp compilation errors when this app configuration is built. Signed-off-by: Kent McLeod <kent@kry10.com>
diff --git a/apps/picoserver/CMakeLists.txt b/apps/picoserver/CMakeLists.txt index f506622..8f97fbe 100644 --- a/apps/picoserver/CMakeLists.txt +++ b/apps/picoserver/CMakeLists.txt
@@ -10,22 +10,6 @@ includeGlobalComponents() -set(LibPicotcp ON CACHE BOOL "" FORCE) -set(LibPicotcpBsd OFF CACHE BOOL "" FORCE) -set(LibEthdriverNumPreallocatedBuffers 32 CACHE STRING "" FORCE) - -# For x86, we map DMA frames into the IOMMU to use as buffers for the -# Ethernet device. The VKA and VSpace libraries do not like pages that -# are not 4K in size. -set(CAmkESDMALargeFramePromotion OFF CACHE BOOL "" FORCE) - -# The app has only been tested on hardware, and not on QEMU -set(SIMULATION OFF CACHE BOOL "" FORCE) -if("${KernelArch}" STREQUAL "x86") - # The IOMMU is required for the Ethdriver component on x86 - set(KernelIOMMU ON CACHE BOOL "" FORCE) -endif() - set(CAmkESCPP ON CACHE BOOL "" FORCE) if("${KernelArch}" STREQUAL "x86") set(cpp_define -DKernelArchX86)
diff --git a/apps/picoserver/settings.cmake b/apps/picoserver/settings.cmake new file mode 100644 index 0000000..8d9700e --- /dev/null +++ b/apps/picoserver/settings.cmake
@@ -0,0 +1,21 @@ +# +# Copyright 2021, Data61, CSIRO (ABN 41 687 119 230) +# +# SPDX-License-Identifier: BSD-2-Clause +# + +set(LibPicotcp ON CACHE BOOL "" FORCE) +set(LibPicotcpBsd OFF CACHE BOOL "" FORCE) +set(LibEthdriverNumPreallocatedBuffers 32 CACHE STRING "" FORCE) + +# For x86, we map DMA frames into the IOMMU to use as buffers for the +# Ethernet device. The VKA and VSpace libraries do not like pages that +# are not 4K in size. +set(CAmkESDMALargeFramePromotion OFF CACHE BOOL "" FORCE) + +# The app has only been tested on hardware, and not on QEMU +set(SIMULATION OFF CACHE BOOL "" FORCE) +if("${KernelArch}" STREQUAL "x86") + # The IOMMU is required for the Ethdriver component on x86 + set(KernelIOMMU ON CACHE BOOL "" FORCE) +endif()