0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-09 17:15:22 +00:00
David Lawson 841033e685 RPi4-PiBoyDmg: switch back to compiling xpi_gamecon as a module (#1832)
* RPi4-PiBoyDmg: switch back to compiling xpi_gamecon as a module

This fixes PiBoy DMG not booting with Lakka v5

* RPi4-PiBoyDmg: audio device is now PCM
2024-04-10 17:04:34 +02:00

23 lines
660 B
Makefile

ifneq (${KERNELRELEASE},)
obj-m = xpi_gamecon.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
MODULE_DIR ?= $(shell pwd)
ARCH ?= $(shell uname -i)
CROSS_COMPILE ?=
INSTALL_MOD_PATH ?= /
endif
all: modules
modules:
${MAKE} ARCH="${ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" -C ${KERNELDIR} M="${MODULE_DIR}" modules
modules_install:
${MAKE} ARCH="${ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" INSTALL_MOD_PATH="${INSTALL_MOD_PATH}" -C ${KERNELDIR} M="${MODULE_DIR}" modules_install
clean:
rm -f *.o *.ko *.mod.c .*.o .*.ko .*.mod.c .*.cmd *~
rm -f Module.symvers Module.markers modules.order
rm -rf .tmp_versions