Makefile: add tvheadend (only for test)

This commit is contained in:
Jaroslav Kysela 2015-05-12 11:27:26 +02:00
parent f4633370b3
commit 68e9e5616b

View File

@ -1,10 +1,11 @@
BUILD=8 BUILD=8
VERSION=$(shell date +%Y%m%d%H%M)-$(BUILD) VERSION=$(shell date +%Y%m%d%H%M)-$(BUILD)
CPUS=4 CPUS=4
CURDIR=$(shell pwd)
STLINUX=/opt/STM/STLinux-2.4 STLINUX=/opt/STM/STLinux-2.4
TOOLPATH=$(STLINUX)/host/bin TOOLPATH=$(STLINUX)/host/bin
TOOLCHAIN=$(STLINUX)/devkit/sh4 TOOLCHAIN=$(STLINUX)/devkit/sh4
TOOLCHAIN_KERNEL=$(shell pwd)/toolchain/4.5.3-99/opt/STM/STLinux-2.4/devkit/sh4 TOOLCHAIN_KERNEL=$(CURDIR)/toolchain/4.5.3-99/opt/STM/STLinux-2.4/devkit/sh4
HOST_ARCH=$(shell uname -m) HOST_ARCH=$(shell uname -m)
EXTRA_AXE_MODULES_DIR=firmware/initramfs/root/modules_idl4k_7108_ST40HOST_LINUX_32BITS EXTRA_AXE_MODULES_DIR=firmware/initramfs/root/modules_idl4k_7108_ST40HOST_LINUX_32BITS
@ -50,6 +51,8 @@ NFSUTILS_SBIN_FILES=utils/showmount/showmount \
utils/statd/statd \ utils/statd/statd \
utils/nfsd/nfsd utils/nfsd/nfsd
TVHEADEND_COMMIT=master
# 10087? # 10087?
OSCAM_REV=10619 OSCAM_REV=10619
@ -225,7 +228,7 @@ apps/minisatip/axe.h:
apps/minisatip/minisatip: apps/minisatip/axe.h apps/minisatip/minisatip: apps/minisatip/axe.h
make -C apps/minisatip \ make -C apps/minisatip \
CC=$(TOOLCHAIN)/bin/sh4-linux-gcc \ CC=$(TOOLCHAIN)/bin/sh4-linux-gcc \
CFLAGS="-O2 -DAXE=1 -DSYS_DVBT2=16" CFLAGS="-O2 -DAXE=1 -DSYS_DVBT2=16 -I$(CURDIR)/kernel/include"
.PHONY: minisatip .PHONY: minisatip
minisatip: apps/minisatip/minisatip minisatip: apps/minisatip/minisatip
@ -385,6 +388,28 @@ apps/oscam-svn/Distribution/oscam-1.20-unstable_svn$(OSCAM_REV)-sh4-linux: apps/
.PHONY: oscam .PHONY: oscam
oscam: apps/oscam-svn/Distribution/oscam-1.20-unstable_svn$(OSCAM_REV)-sh4-linux oscam: apps/oscam-svn/Distribution/oscam-1.20-unstable_svn$(OSCAM_REV)-sh4-linux
#
# tvheadend
#
apps/tvheadend/Makefile:
$(call GIT_CLONE,https://github.com/tvheadend/tvheadend.git,tvheadend,$(TVHEADEND_COMMIT))
apps/tvheadend/build.linux/tvheadend: apps/tvheadend/Makefile
cd apps/tvheadend && \
PKG_CONFIG_PATH=$(TOOLCHAIN)/target/usr/lib/pkgconfig \
PKG_CONFIG=$(TOOLPATH)/pkg-config \
ARCH=sh \
CC=$(TOOLCHAIN)/bin/sh4-linux-gcc \
./configure \
--disable-dbus_1 \
--disable-imagecache \
--enable-bundle
$(MAKE) -j $(CPUS) -C apps/tvheadend
.PHONY: tvheadend
tvheadend: apps/tvheadend/build.linux/tvheadend
# #
# clean all # clean all
# #