1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-08-02 22:20:41 +02:00

initial commit

This commit is contained in:
Dany LE
2021-12-17 20:30:04 +01:00
commit 28c0bca1d6
110 changed files with 909 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- a/cmake/vmmaker.cmake
+++ b/cmake/vmmaker.cmake
@@ -62,16 +62,6 @@ if(GENERATE_SOURCES)
set(VMMAKER_VM ${VMMAKER_DIR}/vm/PharoConsole.exe)
set(VM_URL https://files.pharo.org/vm/pharo-spur64/win/PharoVM-8.6.1-e829a1da-StockReplacement-win64-bin_signed.zip)
set(VM_URL_HASH SHA256=d24a2fb5d8d744a4c8ce0bc332051960d6f5d8db9f75754317b5aee8eafb7cb1)
- elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND (${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64"))
- message("Defining Linux AARCH64 VM to download for code generation")
- set(VMMAKER_VM ${VMMAKER_DIR}/vm/pharo)
- set(VM_URL https://files.pharo.org/vm/pharo-spur64/Linux-aarch64/stable.zip)
- set(VM_URL_HASH SHA256=924e5a25f8e2d51773e8571ebefa2404da9561418af2b54af1330357b75ae865)
- elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND (${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv7l"))
- message("Defining Linux ARM 32 VM to download for code generation")
- set(VMMAKER_VM ${VMMAKER_DIR}/vm/pharo)
- set(VM_URL https://files.pharo.org/vm/pharo-spur32/Linux-armv7l/stable.zip)
- set(VM_URL_HASH SHA256=1816e44523e08e7effe3226a3cabc4ea701fb9582c00456ab90936efb5c645c4)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
message("Defining Linux VM x86_64 to download for code generation")
set(VMMAKER_VM ${VMMAKER_DIR}/vm/pharo)

View File

@ -0,0 +1,35 @@
DESCRIPTION = "Pharo VM"
# DEPENDS = ""
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
#FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
DEPENDS = "libsdl2 libdrm tslib mesa mesa-demos"
# pharo 9.0
SRCREV = "${AUTOREV}"
IMAGE_FILE ?= "latest-64.zip;sha256sum=5fcb782c39663391402d915d29251815be3fa378f1398a41a702387b5fcc8577;"
# TODO add checksum form 64 bits images
IMAGE_FILE:raspberrypi = "latest-32.zip;sha256sum=660e9fd0c6bd5650574cbbea0773d17a75f05be14ce68a119727dc9200a49a30;"
#SRCREV = "961e9c4589540b2cccb924f17bb051bc8c9ae5c1"
SRC_URI = "git://github.com/pharo-project/opensmalltalk-vm.git;branch=pharo-9;"
SRC_URI += "http://files.pharo.org/image/90/${IMAGE_FILE};"
SRC_URI += "file://001-patch-vm-maker.patch"
S="${WORKDIR}/git"
EXTRA_OECMAKE += "-DFEATURE_LIB_GIT2=off -DFEATURE_LIB_CAIRO=off "
TARGET_CFLAGS:raspberrypi += "-D__ARM_ARCH_6__"
inherit cmake
do_install() {
install -d ${D}/opt/pharo
install -d ${D}/opt/pharo/images
install -m 0755 ${B}/build/vm/* ${D}/opt/pharo
install -m 0755 ${WORKDIR}/*.image ${D}/opt/pharo/images/
install -m 0755 ${WORKDIR}/*.changes ${D}/opt/pharo/images/
install -m 0755 ${WORKDIR}/*.sources ${D}/opt/pharo/images/
}
PACKAGES = "${PN} ${PN}-dbg"
FILES:${PN} += "/opt/pharo/*"
# FILES:${PN} += "/opt/images/*"