Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kconfig/Kbuild #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

chewitt
Copy link

@chewitt chewitt commented Jan 27, 2022

It's probably not perfect or 100% correct, but this PR fixes a simple compile issue and allows the module to be built using the LibreELEC build system as a first step towards assembling more bits needed for upstream support.

This is the simple package.mk that I've used:

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)

PKG_NAME="dvb-frontends-availink"
PKG_VERSION="da782673e37e78d6be550eb87bcd7b6b77b3b8e8" # chewitt/kernel_make
PKG_SHA256="a09c92098323c08cb9d4f868e92f4f36b7107dac786cb385e5c4140447a22720"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/availink/dvb-frontends-availink"
PKG_URL="https://github.com/availink/dvb-frontends-availink/archive/${PKG_VERSION}.tar.gz"
PKG_LONGDESC="dvb-frontends-availink: Availink demodulator drivers"
PKG_IS_KERNEL_PKG="yes"
PKG_TOOLCHAIN="manual"

make_target() {
  kernel_make V=1 CONFIG_DVB_AVAILINK=m -C $(kernel_path) M=$(pwd)
}

makeinstall_target() {
  mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
    cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant