developer | fd2abaf | 2022-05-06 13:09:53 +0800 | [diff] [blame] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "Mtd tool" |
| 3 | SECTION = "base" |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c188eeeb69c0a05d0545816f1458a0c9" |
| 6 | |
| 7 | DEPENDS += "libubox" |
| 8 | |
| 9 | inherit autotools systemd pkgconfig |
| 10 | |
| 11 | SRC_URI = " \ |
| 12 | file://COPYING;subdir=git/src \ |
| 13 | file://src;subdir=git \ |
| 14 | " |
| 15 | |
| 16 | S = "${WORKDIR}/git/src" |
| 17 | |
| 18 | META_LDFLAGS_ADD = "-lubox" |
| 19 | |
| 20 | LDFLAGS_remove = "-Wl,--as-needed" |
| 21 | |
| 22 | CFLAGS_append = " -Wall -flto" |
| 23 | LDFLAGS_append = " -flto=jobserver ${META_LDFLAGS_ADD}" |
| 24 | |
| 25 | do_compile_prepend(){ |
| 26 | cd ${S} |
| 27 | } |
| 28 | |
| 29 | do_install() { |
| 30 | install -d ${D}/usr/bin/ |
| 31 | install -m 0755 ${S}/mtd ${D}/usr/bin/ |
| 32 | } |
| 33 | |