Skip to content

Commit

Permalink
🔥: remove support for Linux < 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mguentner committed Nov 18, 2023
1 parent 102ee4f commit a32bb56
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 828 deletions.
13 changes: 0 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,6 @@ if(NOT SCTP_FOUND AND SCTP_SUPPORT)
message(STATUS "Install lksctp-tools for SCTP.")
endif(NOT SCTP_FOUND AND SCTP_SUPPORT)

find_file(LINUX_VERSION_H "linux/version.h")
if(LINUX_VERSION_H)
execute_process(
COMMAND sed -n "s/#define\\s\\+LINUX_VERSION_CODE\\s\\+\\([0-9]\\+\\)/\\1/p" ${LINUX_VERSION_H}
OUTPUT_VARIABLE LINUX_VERSION_CODE
)
if(LINUX_VERSION_CODE LESS 198144)
# The Linux Kernel headers are older than version 3.6
# We need to use the ones shipped with cannelloni
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include)
endif()
endif()

CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h
Expand Down
194 changes: 0 additions & 194 deletions include/linux/can.h

This file was deleted.

98 changes: 0 additions & 98 deletions include/linux/can/bcm.h

This file was deleted.

Loading

0 comments on commit a32bb56

Please sign in to comment.