blob: ca5e3302b320a3b11171742b9b5c567bf7e8ee48 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Yet Another Flash File System"
2DESCRIPTION = "Tools for managing 'yaffs2' file systems."
3
4SECTION = "base"
5HOMEPAGE = "http://www.yaffs.net"
6
Andrew Geissler9aee5002022-03-30 16:27:02 +00007LICENSE = "GPL-2.0-only"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008LIC_FILES_CHKSUM = "file://utils/mkyaffs2image.c;beginline=11;endline=13;md5=5f5464f9b3e981ca574e65b00e438561 \
9 file://utils/mkyaffsimage.c;beginline=10;endline=12;md5=5f5464f9b3e981ca574e65b00e438561 \
10 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011
Patrick Williams03514f12024-04-05 07:04:11 -050012# The commit date of SRCREV
13PV = "20221209"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014
15DEPENDS = "mtd-utils"
16
17# Source is the HEAD of master branch at the time of writing this recipe
Patrick Williamsddad1a12017-02-23 20:36:32 -060018SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \
19 file://makefile-add-ldflags.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 file://0001-define-loff_t-if-not-already-defined.patch \
Patrick Williams03514f12024-04-05 07:04:11 -050021 file://0001-yaffs_guts.h-define-YTIME_T-if-not-already-defined.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022 "
Patrick Williamsddad1a12017-02-23 20:36:32 -060023
Patrick Williams03514f12024-04-05 07:04:11 -050024SRCREV = "613a901a229e8a701c18f003dd0aee18453e0670"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080025
26UPSTREAM_CHECK_COMMITS = "1"
27
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028S = "${WORKDIR}/git"
29
Patrick Williams213cb262021-08-07 19:21:33 -050030CFLAGS:append = " -I.. -DCONFIG_YAFFS_UTIL -DCONFIG_YAFFS_DEFINES_TYPES"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031EXTRA_OEMAKE = "-e MAKEFLAGS="
32
33do_compile() {
34 cd utils && oe_runmake
35}
36
37INSTALL_FILES = "mkyaffsimage \
38 mkyaffs2image \
39 "
40do_install() {
41 install -d ${D}${sbindir}/
42 for i in ${INSTALL_FILES}; do
43 install -m 0755 utils/$i ${D}${sbindir}/
44 done
45}
46
47BBCLASSEXTEND = "native"
Brad Bishop19323692019-04-05 15:28:33 -040048
49# Fixed make clean error:
50#make -C /lib/modules/4.4.0-112-generic/build M=<snip>
51#make: *** /lib/modules/4.4.0-112-generic/build: No such file or directory. Stop.
52#make: *** [clean] Error 2
53CLEANBROKEN = "1"