1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 05:46:19 +00:00
Lakka-LibreELEC/packages/lakka/lakka_tools/gamecon_gpio_rpi/package.mk
Murad U 6b9f4c7853
RPi: gamecon_gpio_rpi driver support (#1960)
* Added support for gamecon_gpio_rpi driver

* Corrected make_target()
2024-04-19 19:48:32 +02:00

25 lines
645 B
Makefile

PKG_NAME="gamecon_gpio_rpi"
PKG_VERSION="26b61caea841dacc1f57587f655288d39f3ffedc"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/h1aji/gamecon_gpio_rpi"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
PKG_LONGDESC="Gamecon GPIO rpi joystick driver"
PKG_TOOLCHAIN="manual"
PKG_IS_KERNEL_PKG="yes"
pre_make_target() {
unset LDFLAGS
}
make_target() {
kernel_make KDIR=$(kernel_path) \
-C $(kernel_path) M=${PKG_BUILD} modules
}
makeinstall_target() {
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
cp -v ${PKG_BUILD}/*.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
}