This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 2 |
index d441b8d..f68dc30 100644 |
| 3 |
--- a/CMakeLists.txt |
| 4 |
+++ b/CMakeLists.txt |
| 5 |
@@ -6,7 +6,15 @@ set(fb_text2screen_VERSION 0.1.1) |
| 6 |
# Dependencies |
| 7 |
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules") |
| 8 |
find_package(Popt REQUIRED) |
| 9 |
-set(LINUX_SRC_DIR "/usr/src/linux" CACHE FILEPATH "Path to Linux kernel sources") |
| 10 |
+ |
| 11 |
+set(CMAKE_INSTALL_PREFIX "/usr") |
| 12 |
+ |
| 13 |
+if(NOT $ENV{LINUX_SRC_DIR}) |
| 14 |
+ set(LINUX_SRC_DIR "$ENV{LINUX_SRC_DIR}" CACHE FILEPATH "Path to Linux kernel sources") |
| 15 |
+else(NOT $ENV{LINUX_SRC_DIR}) |
| 16 |
+ set(LINUX_SRC_DIR "/usr/src/linux" CACHE FILEPATH "Path to Linux kernel sources") |
| 17 |
+endif(NOT $ENV{LINUX_SRC_DIR}) |
| 18 |
+ |
| 19 |
if(NOT IS_DIRECTORY "${LINUX_SRC_DIR}") |
| 20 |
message(FATAL_ERROR "No Linux sources found at ${LINUX_SRC_DIR}. Set LINUX_SRC_DIR variable to directory with Linux sources") |
| 21 |
endif() |
| 22 |
diff --git a/fb_text2screen.c b/fb_text2screen.c |
| 23 |
index f3a37f4..773703b 100644 |
| 24 |
--- a/fb_text2screen.c |
| 25 |
+++ b/fb_text2screen.c |
| 26 |
@@ -30,7 +30,8 @@ |
| 27 |
#include <sys/ioctl.h> |
| 28 |
#include <string.h> |
| 29 |
#include <strings.h> |
| 30 |
-#include <asm-arm/arch-omap/omapfb.h> |
| 31 |
+/* #include <asm-arm/arch-omap/omapfb.h> */ |
| 32 |
+#include <linux/omapfb.h> |
| 33 |
#include <limits.h> |
| 34 |
#include "config.h" |
| 35 |
|
| 36 |
diff --git a/tarball b/tarball |
| 37 |
index b354d6d..9ed4e14 100755 |
| 38 |
--- a/tarball |
| 39 |
+++ b/tarball |
| 40 |
@@ -1,4 +1,4 @@ |
| 41 |
-#!/bin/sh |
| 42 |
+#!/bin/bash |
| 43 |
if [ "x$1" == "x" ]; then |
| 44 |
echo "Usage: $0 <version>" |
| 45 |
exit 1; |