Commit Graph

2 Commits

Author SHA1 Message Date
Julian Liu
99a91fa6e8 dtc-aosp: Makefile: Fix building on k4.19
* Since they did some changes in 833e622459, the Makefile no longer works.

error log:
 ../scripts/dtc-aosp/dtc/dtc-parser.y: warning: 3 shift/reduce conflicts [-Wconflicts-sr]
  HOSTCC  scripts/dtc-aosp/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc-aosp/dtc/dtc-parser.tab.o
gcc: error: scripts/dtc-aosp/dtc/dtc-parser.tab.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.

* The patch did fix this.

Signed-off-by: LibXZR <xzr467706992@163.com>
2022-11-12 11:19:03 +00:00
Jason A. Donenfeld
f00c01ec68 dtc: Bundle AOSP's fork of dtc
We apparently need their fork so that the generated dtbo.img works,
since we're using Android's overlay dtb.

They've done horrible things to it to support broken AOSP tools, so we
hack around that by introducing our own make file and wiring the whole
thing into the kernel's build system seamlessly.

Since we're now bundling in the correct dtc, we also no longer respect
the config's chosen dtc.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Danny Lin <danny@kdrag0n.dev>
Signed-off-by: Julian Liu <wlootlxt123@gmail.com>
[libxzr: Pull it from my own repo]
Signed-off-by: LibXZR <xzr467706992@163.com>
2022-11-12 11:19:02 +00:00