blob: 40066381ef6f71c065cf4e9990c6fe6960dcab18 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "Mtd tool"
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c188eeeb69c0a05d0545816f1458a0c9"
DEPENDS += "libubox"
inherit autotools systemd pkgconfig
SRC_URI = " \
file://COPYING;subdir=git/src \
file://src;subdir=git \
"
S = "${WORKDIR}/git/src"
META_LDFLAGS_ADD = "-lubox"
LDFLAGS_remove = "-Wl,--as-needed"
CFLAGS_append = " -Wall -flto"
LDFLAGS_append = " -flto=jobserver ${META_LDFLAGS_ADD}"
do_compile_prepend(){
cd ${S}
}
do_install() {
install -d ${D}/usr/bin/
install -m 0755 ${S}/mtd ${D}/usr/bin/
}