Skip to content
Permalink
Browse files

dvb: fixup crazycat/dvb-latest for Amlogic-ng

  • Loading branch information...
adamg88 committed Apr 12, 2019
1 parent e1ff1fe commit 8b5c356f03e1a1152f32aa77b880d8efd62c429e
@@ -21,7 +21,7 @@ PKG_ADDON_TYPE="xbmc.service"
PKG_ADDON_VERSION="${ADDON_VERSION}.${PKG_REV}"

configure_package() {
if [ "$PROJECT" = "Amlogic" ]; then
if [ "$PROJECT" = "Amlogic" -o "$PROJECT" = "Amlogic-ng" ]; then
PKG_PATCH_DIRS="amlogic"
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET media_tree_aml"
PKG_NEED_UNPACK="$PKG_NEED_UNPACK media_tree_aml"
@@ -35,7 +35,7 @@ pre_make_target() {

make_target() {
cp -RP $(get_build_dir media_tree_cc)/* $PKG_BUILD/linux
if [ "$PROJECT" = "Amlogic" ]; then
if [ "$PROJECT" = "Amlogic" -o "$PROJECT" = "Amlogic-ng" ]; then
cp -RP $(get_build_dir media_tree_aml)/* $PKG_BUILD/linux
echo "obj-y += video_dev/" >> "$PKG_BUILD/linux/drivers/media/platform/meson/Makefile"
echo "obj-y += dvb-avl/" >> "$PKG_BUILD/linux/drivers/media/platform/meson/Makefile"
@@ -49,7 +49,7 @@ make_target() {
if [ "$PROJECT" = Rockchip ]; then
sed -e 's/CONFIG_DVB_CXD2820R=m/# CONFIG_DVB_CXD2820R is not set/g' -i v4l/.config
sed -e 's/CONFIG_DVB_LGDT3306A=m/# CONFIG_DVB_LGDT3306A is not set/g' -i v4l/.config
elif [ "$PROJECT" = "Amlogic" ]; then
elif [ "$PROJECT" = "Amlogic" -o "$PROJECT" = "Amlogic-ng" ]; then
sed -e 's/CONFIG_DVB_LGDT3306A=m/# CONFIG_DVB_LGDT3306A is not set/g' -i v4l/.config
sed -e 's/CONFIG_VIDEO_S5C73M3=m/# CONFIG_VIDEO_S5C73M3 is not set/g' -i $PKG_BUILD/v4l/.config
sed -e 's/CONFIG_VIDEO_SAA7146_VV=m/# CONFIG_VIDEO_SAA7146_VV is not set/g' -i $PKG_BUILD/v4l/.config
@@ -30,7 +30,7 @@ case "$LINUX" in
esac

configure_package() {
if [ "$PROJECT" = "Amlogic" ]; then
if [ "$PROJECT" = "Amlogic" -o "$PROJECT" = "Amlogic-ng" ]; then
PKG_PATCH_DIRS+=" amlogic-common"
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET media_tree_aml"
PKG_NEED_UNPACK="$PKG_NEED_UNPACK media_tree_aml"
@@ -45,7 +45,7 @@ pre_make_target() {
make_target() {
cp -RP $(get_build_dir media_tree)/* $PKG_BUILD/linux

if [ "$PROJECT" = "Amlogic" ]; then
if [ "$PROJECT" = "Amlogic" -o "$PROJECT" = "Amlogic-ng" ]; then
cp -Lr $(get_build_dir media_tree_aml)/* $PKG_BUILD/linux

# compile modules
@@ -58,7 +58,7 @@ make_target() {
kernel_make VER=$KERNEL_VER SRCDIR=$(kernel_path) allyesconfig

# hack to workaround media_build bug
if [ "$PROJECT" = "Amlogic" ]; then
if [ "$PROJECT" = "Amlogic" -o "$PROJECT" = "Amlogic-ng" ]; then
sed -e 's/CONFIG_DVB_LGDT3306A=m/# CONFIG_DVB_LGDT3306A is not set/g' -i v4l/.config
sed -e 's/CONFIG_VIDEO_S5C73M3=m/# CONFIG_VIDEO_S5C73M3 is not set/g' -i $PKG_BUILD/v4l/.config
sed -e 's/CONFIG_VIDEO_SAA7146_VV=m/# CONFIG_VIDEO_SAA7146_VV is not set/g' -i $PKG_BUILD/v4l/.config
@@ -0,0 +1,12 @@
--- /dev/null
+++ b/v4l/config-mycompat.h
@@ -0,0 +1,8 @@
+#undef smp_mb__after_atomic
+#define smp_mb__after_atomic() smp_mb() /*mb*/
+#undef NEED_SMP_MB_AFTER_ATOMIC
+#undef writel_relaxed
+#define writel_relaxed(v,c) ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
+#undef NEED_WRITEL_RELAXED
+#undef NEED_PM_RUNTIME_GET
+#undef NEED_OF_NODE_NAME_EQ
--

This file was deleted.

Oops, something went wrong.

0 comments on commit 8b5c356

Please sign in to comment.
You can’t perform that action at this time.