summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml48
1 files changed, 37 insertions, 11 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 83ee5b55ac..aadb43238b 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -788,25 +788,51 @@
788 SECTION = "base" 788 SECTION = "base"
789 DEPENDS = "zlib lzo e2fsprogs util-linux" 789 DEPENDS = "zlib lzo e2fsprogs util-linux"
790 HOMEPAGE = "http://www.linux-mtd.infradead.org/" 790 HOMEPAGE = "http://www.linux-mtd.infradead.org/"
791 LICENSE = "GPLv2" 791 LICENSE = "GPLv2+"
792 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ 792 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
793 file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c" 793 file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"
794 794
795 SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=v${PV}" 795 SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=995cfe51b0a3cf32f381c140bf72b21bf91cef1b \
796 file://add-exclusion-to-mkfs-jffs2-git-2.patch"
796 797
797 S = "${WORKDIR}/git/" 798 S = "${WORKDIR}/git/"
798 799
799 EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' \ 800 PR = "r1"
800 'BUILDDIR=${S}'" 801
802 EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' \
803 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
801 804
802 do_install () { 805 do_install () {
803 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ 806 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \
804 INCLUDEDIR=${includedir} 807 INCLUDEDIR=${includedir}
805 install -d ${D}${includedir}/mtd/ 808 install -d ${D}${includedir}/mtd/
806 for f in ${S}/include/mtd/*.h; do 809 for f in ${S}/include/mtd/*.h; do
807 install -m 0644 $f ${D}${includedir}/mtd/ 810 install -m 0644 $f ${D}${includedir}/mtd/
808 done 811 done
809 } 812 }
813
814 PARALLEL_MAKE = ""
815
816 BBCLASSEXTEND = "native"
817 </literallayout>
818 </para>
819
820 <para>
821 If your sources are available as a tarball instead of a Git repository, you
822 will need to provide the URL to the tarball as well as an
823 <filename>md5</filename> or <filename>sha256</filename> sum of
824 the download.
825 Here is an example:
826 <literallayout class='monospaced'>
827 SRC_URI="ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.4.9.tar.bz2"
828 SRC_URI[md5sum]="82b8e714b90674896570968f70ca778b"
829 </literallayout>
830 You can generate the <filename>md5</filename> or <filename>sha256</filename> sums
831 by using the <filename>md5sum</filename> or <filename>sha256sum</filename> commands
832 with the target file as the only argument.
833 Here is an example:
834 <literallayout class='monospaced'>
835 $ md5sum mtd-utils-1.4.9.tar.bz2 82b8e714b90674896570968f70ca778b mtd-utils-1.4.9.tar.bz2
810 </literallayout> 836 </literallayout>
811 </para> 837 </para>
812 </section> 838 </section>