Replace dtbTool with the Skales dtbTool (#1048)
Should work the same, except it should also work in mainline, because it uses libfdt (CM dtbtool often errors on mainline).
This commit is contained in:
parent
8297ed30b7
commit
6666f8a984
2 changed files with 8 additions and 26 deletions
|
@ -1,21 +1,17 @@
|
||||||
pkgname=dtbtool
|
pkgname=dtbtool
|
||||||
pkgver=3
|
pkgver=1.6.0
|
||||||
pkgrel=3
|
pkgrel=0
|
||||||
pkgdesc="dtbtool"
|
pkgdesc="skales dtbtool"
|
||||||
url="https://github.com/LineageOS/android_device_qcom_common/tree/cm-14.1/dtbtool"
|
url="https://source.codeaurora.org/quic/kernel/skales/plain/dtbTool"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="MIT"
|
license="BSD-2"
|
||||||
source="dtbtool.c::https://raw.githubusercontent.com/LineageOS/android_device_qcom_common/cm-14.1/dtbtool/dtbtool.c Makefile"
|
source="dtbTool::https://source.codeaurora.org/quic/kernel/skales/plain/dtbTool?id=${pkgver}"
|
||||||
options="!check"
|
options="!check"
|
||||||
|
depends="dtc-dev python"
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$srcdir"
|
|
||||||
make
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -D -m755 "$srcdir"/dtbTool \
|
install -D -m755 "$srcdir"/dtbTool \
|
||||||
"$pkgdir"/usr/bin/dtbTool
|
"$pkgdir"/usr/bin/dtbTool
|
||||||
}
|
}
|
||||||
sha512sums="a98b24b962be0f11c037bdf420db57621249ba52d666b162b897fe02d06bd65969e4c260d5b2e01e2f851c9649d6e19d8584126b7ea6e5070424f41d383de1a7 dtbtool.c
|
sha512sums="77ad411ff482896919d971c5ef15817a5bee837d5a8827fd4a0449e7a99b8759e3ca2fe3f233b4a3a92c8e386e0457191d8d18755dba842224f5cc64ddb89024 dtbTool"
|
||||||
18dd845899a3c11f0d5ae2eefb23eedf14b7c6d2e39a1c4e59f08fd893e5b549a5e9221413d1a2b4c9ab4507fb759fd6ae419a0223a98fb737b56cb467ef3d12 Makefile"
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
CFLAGS=-O2 -g -Wall
|
|
||||||
CC=gcc
|
|
||||||
PROGNAME=dtbTool
|
|
||||||
|
|
||||||
all: $(PROGNAME)
|
|
||||||
|
|
||||||
%.o: %.c
|
|
||||||
$(CC) $(CFLAGS) -c $<
|
|
||||||
|
|
||||||
$(PROGNAME): dtbtool.o
|
|
||||||
$(CC) -g -o $(PROGNAME) dtbtool.o
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *.o $(PROGNAME)
|
|
Loading…
Reference in a new issue