Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,validate_data} $(1)/sbin/
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getrandom $(1)/usr/bin/
+ -$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getrandom $(1)/usr/bin/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
$(LN) kmodloader $(1)/sbin/rmmod
--- /dev/null
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 62de1d4b9648..3474af320ba3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -24,8 +24,6 @@ IF(getrandom)
+ INSTALL(TARGETS getrandom
+ RUNTIME DESTINATION bin
+ )
+-ELSE()
+- message( FATAL_ERROR "Kernel too old, missing SYS_getrandom system call")
+ ENDIF()
+
+ ADD_EXECUTABLE(kmodloader kmodloader.c)