This commit is contained in:
Imbus 2026-02-03 18:12:28 +01:00
commit b4d9399de6
16 changed files with 465 additions and 0 deletions

View file

@ -0,0 +1,21 @@
LICENSE = "ISC & BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9ddb37016e12a99202e14ddb69593155"
SRC_URI = "git://github.com/eradman/entr;protocol=https;branch=master"
PV = "1.0+git"
SRCREV = "81fb8966fd709b3d99996df644ee1c4c8492235d"
S = "${WORKDIR}/git"
do_configure () {
./configure
}
do_compile () {
oe_runmake
}
do_install() {
oe_runmake install DESTDIR=${D} PREFIX=${prefix}
}

View file

@ -0,0 +1,3 @@
#include <stdio.h>
int main(void) { printf("Hello, world!"); }

View file

@ -0,0 +1,24 @@
DESCRIPTION = "Prints hello world"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}"
TARGET_CC_ARCH += "${LDFLAGS}"
FILES:${PN} += "/etc/helloworld"
do_compile() {
bbplain "Hello world: do_compile"
# ${CC} helloworld.c -o helloworld
${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld
}
do_install() {
# Install the helloworld application to /usr/bin on target
# install -d ${D}/usr/bin
# install -m 0755 helloworld ${D}/usr/bin
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
install -d ${D}/etc
touch ${D}/etc/helloworld
}

View file

@ -0,0 +1,31 @@
# This is borked. Bitbake has strict requirements on .so versioning and symlinking,
# and for a very good reason, of course.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5741b139eae27eb6a4fc1c9b1732ef7f"
SRC_URI = "git://git.silversoft.se/Imbus/libhash.git;protocol=https;branch=master"
PV = "1.0+git"
SRCREV = "9c23dc5653a5de8fef69265411a23c9905495acb"
S = "${WORKDIR}/git"
do_configure () {
# Specify any needed configure commands here
:
}
do_compile () {
# You will almost certainly need to add additional arguments here
oe_runmake
}
do_install () {
# This is a guess; additional arguments may be required
oe_runmake install 'DESTDIR=${D}' 'PREFIX=/usr'
}
FILES:${PN}-staticdev += "/usr/lib/libhash.a"
FILES:${PN}-dev += "/usr/lib/libhash.so"
FILES:${PN}-dev += "/usr/include/"