2023-08-12 20:01:24 -04:00
|
|
|
SHARP_DRM_VERSION = 1.0
|
|
|
|
SHARP_DRM_SITE = $(BR2_EXTERNAL_BEEPY_DRIVERS_PATH)/package/sharp-drm
|
|
|
|
SHARP_DRM_SITE_METHOD = local
|
2023-08-04 20:22:22 -04:00
|
|
|
|
2023-08-12 20:01:24 -04:00
|
|
|
SHARP_DRM_INSTALL_IMAGES = YES
|
|
|
|
SHARP_DRM_MODULE_SUBDIRS = .
|
2023-08-04 20:22:22 -04:00
|
|
|
|
2023-08-12 20:01:24 -04:00
|
|
|
define SHARP_DRM_BUILD_CMDS
|
2023-08-04 20:22:22 -04:00
|
|
|
for dts in $(@D)/*.dts; do \
|
|
|
|
$(HOST_DIR)/bin/dtc -@ -I dts -O dtb -W no-unit_address_vs_reg -o $${dts%.dts}.dtbo $${dts}; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2023-08-12 20:01:24 -04:00
|
|
|
define SHARP_DRM_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/init/S01sharpdrm $(TARGET_DIR)/etc/init.d/;
|
2023-08-04 20:22:22 -04:00
|
|
|
endef
|
|
|
|
|
2023-08-12 20:01:24 -04:00
|
|
|
define SHARP_DRM_INSTALL_IMAGES_CMDS
|
2023-08-04 20:22:22 -04:00
|
|
|
for dtbo in $(@D)/*.dtbo; do \
|
|
|
|
$(INSTALL) -D -m 0644 $${dtbo} $(BINARIES_DIR)/rpi-firmware/overlays; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(kernel-module))
|
|
|
|
$(eval $(generic-package))
|