Commit 79c60900 authored by Olliver Schinagl's avatar Olliver Schinagl Committed by Natanael Copa
Browse files

community/uboot-tools: Move example config file to examples



An example config file should not be in /etc. Lets move it where it
belongs, into the examples.
Signed-off-by: Olliver Schinagl's avatarOlliver Schinagl <oliver@schinagl.nl>
parent 34d6671c
......@@ -2,12 +2,13 @@
# Maintainer: Fathi Boudra <fathi.boudra@linaro.org>
pkgname=uboot-tools
pkgver=2019.10
pkgrel=0
pkgrel=1
pkgdesc="U-Boot bootloader utility tools"
url="https://www.denx.de/wiki/U-Boot/WebHome"
arch="all !s390x !ppc64le"
license="GPL"
makedepends="$depends_dev bison flex openssl-dev linux-headers sdl-dev"
subpackages="$pkgname-examples"
options="!check" # No test suite
source="http://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2
fix-ulong-typedef.patch
......@@ -20,6 +21,12 @@ build() {
make tools-all
}
examples() {
mkdir -p "${subpkgdir}/usr/share/doc/${pkgname}"
mv "${pkgdir}/usr/share/doc/${pkgname}/examples/" \
"${subpkgdir}/usr/share/doc/${pkgname}"
}
package() {
cd "$builddir"
for tool in bmp_logo dumpimage env/fw_printenv \
......@@ -29,7 +36,7 @@ package() {
$pkgdir/usr/bin/$(basename $tool)
done
install -Dm644 tools/env/fw_env.config \
$pkgdir/etc/fw_env.config
"${pkgdir}/usr/share/doc/${pkgname}/examples/fw_env.config"
cd "$pkgdir"/usr/bin
ln -sf fw_printenv fw_setenv
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment