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
|
||||
pkgver=3
|
||||
pkgrel=3
|
||||
pkgdesc="dtbtool"
|
||||
url="https://github.com/LineageOS/android_device_qcom_common/tree/cm-14.1/dtbtool"
|
||||
pkgver=1.6.0
|
||||
pkgrel=0
|
||||
pkgdesc="skales dtbtool"
|
||||
url="https://source.codeaurora.org/quic/kernel/skales/plain/dtbTool"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
source="dtbtool.c::https://raw.githubusercontent.com/LineageOS/android_device_qcom_common/cm-14.1/dtbtool/dtbtool.c Makefile"
|
||||
license="BSD-2"
|
||||
source="dtbTool::https://source.codeaurora.org/quic/kernel/skales/plain/dtbTool?id=${pkgver}"
|
||||
options="!check"
|
||||
depends="dtc-dev python"
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
install -D -m755 "$srcdir"/dtbTool \
|
||||
"$pkgdir"/usr/bin/dtbTool
|
||||
}
|
||||
sha512sums="a98b24b962be0f11c037bdf420db57621249ba52d666b162b897fe02d06bd65969e4c260d5b2e01e2f851c9649d6e19d8584126b7ea6e5070424f41d383de1a7 dtbtool.c
|
||||
18dd845899a3c11f0d5ae2eefb23eedf14b7c6d2e39a1c4e59f08fd893e5b549a5e9221413d1a2b4c9ab4507fb759fd6ae419a0223a98fb737b56cb467ef3d12 Makefile"
|
||||
sha512sums="77ad411ff482896919d971c5ef15817a5bee837d5a8827fd4a0449e7a99b8759e3ca2fe3f233b4a3a92c8e386e0457191d8d18755dba842224f5cc64ddb89024 dtbTool"
|
||||
|
|
|
@ -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