fix build vuduo - not yet ready

Origin commit data
------------------
Branch: master
Commit: e9c79288bc
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2019-04-05 (Fri, 05 Apr 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2019-04-05 02:23:57 +02:00
committed by max_10
parent 74d35205ea
commit 8a439cdc95
36 changed files with 214 additions and 21 deletions

35
libmipsbox/Makefile.am Normal file
View File

@@ -0,0 +1,35 @@
noinst_LTLIBRARIES = libmipsbox.la
AM_CPPFLAGS = \
-I$(top_srcdir)/common \
-I$(top_srcdir)/include
AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing
AM_LDFLAGS = \
-lOpenThreads \
@AVFORMAT_LIBS@ \
@AVUTIL_LIBS@ \
@AVCODEC_LIBS@ \
@SWRESAMPLE_LIBS@ \
-lpthread -lass -lrt
libmipsbox_la_SOURCES = \
hardware_caps.c \
dmx.cpp \
video.cpp \
audio.cpp \
init.cpp \
record.cpp \
hdmi_cec.cpp
libmipsbox_la_SOURCES += \
playback_libeplayer3.cpp
AM_CPPFLAGS += \
-I$(top_srcdir)/libeplayer3-mips/include
AM_LDFLAGS += \
-lass
AM_CPPFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS

1
libmipsbox/audio.cpp Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/audio.cpp

1
libmipsbox/audio_lib.h Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/audio_lib.h

1
libmipsbox/dmx.cpp Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/dmx.cpp

View File

@@ -0,0 +1,50 @@
/*
* determine the capabilities of the hardware.
* part of libstb-hal
*
* (C) 2010-2012 Stefan Seyfried
*
* License: GPL v2 or later
*/
#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <hardware_caps.h>
#define FP_DEV "/dev/dbox/oled0"
static int initialized = 0;
static hw_caps_t caps;
hw_caps_t *get_hwcaps(void)
{
if (initialized)
return &caps;
memset(&caps, 0, sizeof(hw_caps_t));
#if BOXMODEL_VUDUO
initialized = 1;
caps.has_CI = 2;
caps.can_cec = 1;
caps.can_shutdown = 1;
caps.display_xres = 16;
caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.display_can_deepstandby = 1;
caps.display_can_set_brightness = 1;
caps.display_has_statusline = 0;
caps.has_button_timer = 1;
caps.has_HDMI = 1;
caps.has_SCART = 1;
strcpy(caps.boxvendor, "VU+");
strcpy(caps.boxname, "DUO");
strcpy(caps.boxarch, "BCM7335");
#endif
return &caps;
}

1
libmipsbox/hdmi_cec.cpp Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/hdmi_cec.cpp

1
libmipsbox/hdmi_cec.h Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/hdmi_cec.h

1
libmipsbox/hdmi_cec_types.h Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/hdmi_cec_types.h

1
libmipsbox/init.cpp Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/init.cpp

1
libmipsbox/linux-uapi-cec.h Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/linux-uapi-cec.h

View File

@@ -0,0 +1 @@
../libarmbox/playback_libeplayer3.cpp

View File

@@ -0,0 +1 @@
../libarmbox/playback_libeplayer3.h

1
libmipsbox/record.cpp Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/record.cpp

1
libmipsbox/record_lib.h Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/record_lib.h

1
libmipsbox/video.cpp Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/video.cpp

1
libmipsbox/video_lib.h Symbolic link
View File

@@ -0,0 +1 @@
../libarmbox/video_lib.h