mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-11-15 09:48:21 +01:00
update layer to be compatible with rpi zero 64 bits
This commit is contained in:
parent
28c0bca1d6
commit
16b17aa535
@ -27,8 +27,8 @@ ROOT_HOME = "/root"
|
||||
#MACHINE = "raspberrypi3-64"
|
||||
#MACHINE = "raspberrypi2"
|
||||
|
||||
RPI_USE_U_BOOT:raspberrypi = "0"
|
||||
RPI_USE_U_BOOT ?= "1"
|
||||
#RPI_USE_U_BOOT:raspberrypi = "0"
|
||||
RPI_USE_U_BOOT = "0"
|
||||
RPI_USE_wS_28_DPI_LCD = "1"
|
||||
# enable usb boot in uboot
|
||||
ENABLE_USB_U_BOOT = "0"
|
||||
@ -40,7 +40,7 @@ ENABLE_SPI_BUS = "0"
|
||||
ENABLE_I2C = "0"
|
||||
KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev "
|
||||
|
||||
VC4DTBO:raspberrypi = "vc4-kms-v3d,nocomposite,noaudio"
|
||||
VC4DTBO = "vc4-kms-v3d,nocomposite,noaudio"
|
||||
|
||||
KERNEL_DEVICETREE:append = " overlays/vc4-kms-dpi-generic.dtbo "
|
||||
|
||||
|
@ -24,6 +24,7 @@ IMAGE_INSTALL:append = "mpg123 \
|
||||
libgl-mesa \
|
||||
libglapi \
|
||||
glew \
|
||||
freetype \
|
||||
freeglut \
|
||||
mesa \
|
||||
libsdl2 \
|
||||
|
@ -28,6 +28,9 @@ case "$1" in
|
||||
reboot
|
||||
fi
|
||||
# display information
|
||||
# disable wifi power save
|
||||
/usr/sbin/iw wlan0 set power_save off
|
||||
/sbin/ip a
|
||||
;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
|
@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
|
||||
|
||||
#FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
DEPENDS = "libsdl2 "
|
||||
DEPENDS = "libsdl2 mesa freetype"
|
||||
|
||||
# pharo 9.0
|
||||
# SRCREV = "${AUTOREV}"
|
||||
@ -18,11 +18,15 @@ S="${WORKDIR}/git/platforms/unix/config"
|
||||
B="${WORKDIR}/build"
|
||||
inherit autotools
|
||||
|
||||
TARGET_CFLAGS += " -D__ARM_ARCH_6__ -DDEBUGVM=0 "
|
||||
TARGET_CFLAGS:raspberrypi += " -D__ARM_ARCH_6__ "
|
||||
TARGET_CF_GLAGS += " -DDEBUGVM=0 "
|
||||
|
||||
EXTRA_OECONF:append=" --with-src=src/spur32.cog \
|
||||
--with-sysroot=${STAGING_DIR_TARGET} \
|
||||
EXTRA_OECONF:append=" --with-sysroot=${STAGING_DIR_TARGET} \
|
||||
--without-npsqueak"
|
||||
EXTRA_OECONF:raspberrypi:append = " --with-src=src/spur32.cog "
|
||||
EXTRA_OECONF:raspberrypi0-2w-64:append = " --with-src=src/spur64.cog "
|
||||
|
||||
|
||||
INSANE_SKIP += " configure-unsafe "
|
||||
|
||||
do_configure() {
|
||||
|
@ -102,6 +102,7 @@ int main( int argc, char** argv )
|
||||
SDL_SetRenderDrawColor( renderer, rand() % 256, rand() % 256, rand() % 256, SDL_ALPHA_OPAQUE );
|
||||
SDL_RenderClear( renderer );
|
||||
SDL_RenderPresent( renderer );
|
||||
SDL_Delay(50);
|
||||
}
|
||||
|
||||
SDL_DestroyRenderer( renderer );
|
||||
|
1
recipes-kernel/linux/files/goodix.cfg
Normal file
1
recipes-kernel/linux/files/goodix.cfg
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_TOUCHSCREEN_GOODIX=m
|
6
recipes-kernel/linux/linux-raspberrypi_%.bbappend
Normal file
6
recipes-kernel/linux/linux-raspberrypi_%.bbappend
Normal file
@ -0,0 +1,6 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
# inherit kernel
|
||||
SRC_URI += " \
|
||||
file://goodix.cfg \
|
||||
"
|
Loading…
Reference in New Issue
Block a user