deprecated wiringPi

This commit is contained in:
Robin Müller 2021-01-14 10:52:41 +01:00 committed by Robin Mueller
parent 162c0ded02
commit b0d9046bd9

View File

@ -19,15 +19,15 @@ if(${OS_FSFW} STREQUAL linux AND TGT_BSP)
) )
elseif (${TGT_BSP} MATCHES "arm/raspberrypi") elseif (${TGT_BSP} MATCHES "arm/raspberrypi")
if(NOT DEFINED ENV{RASPBIAN_ROOTFS}) if(NOT DEFINED ENV{RASPBIAN_ROOTFS})
if(NOT RASPBIAN_ROOTFS) if(NOT DEFINED RASPBIAN_ROOTFS)
message(WARNING "No RASPBIAN_ROOTFS environmental or CMake variable set!")
set(ENV{RASPBIAN_ROOTFS} "$ENV{HOME}/raspberrypi/rootfs") set(ENV{RASPBIAN_ROOTFS} "$ENV{HOME}/raspberrypi/rootfs")
else() else()
set(ENV{RASPBIAN_ROOTFS} "${RASPBIAN_ROOTFS}") set(ENV{RASPBIAN_ROOTFS} "${RASPBIAN_ROOTFS}")
endif() endif()
else() else()
message(STATUS message(STATUS
"RASPBIAN_ROOTFS from environmental variables used: " "RASPBIAN_ROOTFS from environmental variables used: $ENV{RASPBIAN_ROOTFS}"
"$ENV{RASPBIAN_ROOTFS}"
) )
endif() endif()
@ -36,12 +36,8 @@ if(${OS_FSFW} STREQUAL linux AND TGT_BSP)
message(STATUS "No RASPBERRY_VERSION specified, setting to 4") message(STATUS "No RASPBERRY_VERSION specified, setting to 4")
set(RASPBERRY_VERSION "4" CACHE STRING "Raspberry Pi version") set(RASPBERRY_VERSION "4" CACHE STRING "Raspberry Pi version")
else() else()
message(STATUS message(STATUS "Setting RASPBERRY_VERSION to ${RASPBERRY_VERSION}")
"Setting RASPBERRY_VERSION to ${RASPBERRY_VERSION}" set(RASPBERRY_VERSION ${RASPBERRY_VERSION} CACHE STRING "Raspberry Pi version")
)
set(RASPBERRY_VERSION
${RASPBERRY_VERSION} CACHE STRING "Raspberry Pi version"
)
set(ENV{RASPBERRY_VERSION} ${RASPBERRY_VERSION}) set(ENV{RASPBERRY_VERSION} ${RASPBERRY_VERSION})
endif() endif()
else() else()