mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-31 01:10:08 +00:00
debootstrap: cleanup the recipe
* FILESEXTRAPATHS_prepend isn't needed
* ${PN}-${PV} -> ${BP}
* drop autotools, it doesn't use autotools, there is just a Makefile
* use SUMMARY instead of DESCRIPTION
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
DESCRIPTION = "Install a Debian system into a subdirectory"
|
SUMMARY = "Install a Debian system into a subdirectory"
|
||||||
HOMEPAGE = "https://wiki.debian.org/Debootstrap"
|
HOMEPAGE = "https://wiki.debian.org/Debootstrap"
|
||||||
SECTION = "devel"
|
SECTION = "devel"
|
||||||
LICENSE = "debootstrap-custom-license"
|
LICENSE = "debootstrap-custom-license"
|
||||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=1e68ced6e1689d4cd9dac75ff5225608"
|
LIC_FILES_CHKSUM = "file://debian/copyright;md5=1e68ced6e1689d4cd9dac75ff5225608"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit pkgconfig
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
||||||
|
|
||||||
SRC_URI = "\
|
SRC_URI = "\
|
||||||
http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_1.0.67.tar.gz \
|
http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_1.0.67.tar.gz \
|
||||||
@@ -16,9 +14,21 @@ SRC_URI = "\
|
|||||||
SRC_URI[md5sum] = "eacabfe2e45415af60b1d74c3a23418a"
|
SRC_URI[md5sum] = "eacabfe2e45415af60b1d74c3a23418a"
|
||||||
SRC_URI[sha256sum] = "0a12e0a2bbff185d47711a716b1f2734856100e8784361203e834fed0cffa51b"
|
SRC_URI[sha256sum] = "0a12e0a2bbff185d47711a716b1f2734856100e8784361203e834fed0cffa51b"
|
||||||
|
|
||||||
S = "${WORKDIR}/${PN}-${PV}"
|
S = "${WORKDIR}/${BP}"
|
||||||
|
|
||||||
do_install_prepend() {
|
# All Makefile does is creation of devices.tar.gz, which fails in OE build, we use
|
||||||
cp ${WORKDIR}/devices.tar.gz ${S}
|
# static devices.tar.gz as work around
|
||||||
cd "${S}"
|
# | NOTE: make -j 8 -e MAKEFLAGS=
|
||||||
|
# | rm -rf dev
|
||||||
|
# | mkdir -p dev
|
||||||
|
# | chown 0:0 dev
|
||||||
|
# | chown: changing ownership of `dev': Operation not permitted
|
||||||
|
# | make: *** [devices.tar.gz] Error 1
|
||||||
|
# | WARNING: exit code 1 from a shell command.
|
||||||
|
do_compile_prepend() {
|
||||||
|
cp ${WORKDIR}/devices.tar.gz ${B}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
oe_runmake 'DESTDIR=${D}' install
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user