summaryrefslogtreecommitdiff
path: root/v4l2-mfc-encoder
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-mfc-encoder')
-rw-r--r--v4l2-mfc-encoder/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/v4l2-mfc-encoder/Makefile b/v4l2-mfc-encoder/Makefile
index d18ba17..d79666a 100644
--- a/v4l2-mfc-encoder/Makefile
+++ b/v4l2-mfc-encoder/Makefile
@@ -16,9 +16,13 @@
# limitations under the License.
#
+ifeq ($(KERNELHEADERS_PREFIX),)
+$(warning KERNELHEADERS_PREFIX is not set, the build may fail due to lack of kernel headers)
+endif
+
# Toolchain path
TCPATH = arm-linux-gnueabi-
-KERNELHEADERS = /home/kamil/praca/w1-party/kernel/headers/include
+KERNELHEADERS = -I$(KERNELHEADERS_PREFIX)
CC = ${TCPATH}gcc
AR = "${TCPATH}ar rc"
@@ -30,7 +34,7 @@ INCLUDES = -I$(KERNELHEADERS)
SOURCES = main.c args.c in_demo.c out_file.c mfc.c io_dev.c func_dev.c v4l_dev.c in_camera.c
OBJECTS := $(SOURCES:.c=.o)
EXEC = mfc-encode
-CFLAGS = -Wall -g -DS5PC1XX_FIMC
+CFLAGS = -Wall -g
DEP = .dep
all: $(EXEC) $(DEP)