uboot-sifiveu: use intree dtc explicitly
[openwrt/staging/hauke.git] / package / boot / uboot-sunxi / patches / 300-force-pylibfdt-build.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -2000,26 +2000,7 @@ endif
4 # Check dtc and pylibfdt, if DTC is provided, else build them
5 PHONY += scripts_dtc
6 scripts_dtc: scripts_basic
7 - $(Q)if test "$(DTC)" = "$(DTC_INTREE)"; then \
8 - $(MAKE) $(build)=scripts/dtc; \
9 - else \
10 - if ! $(DTC) -v >/dev/null; then \
11 - echo '*** Failed to check dtc version: $(DTC)'; \
12 - false; \
13 - else \
14 - if test "$(call dtc-version)" -lt $(DTC_MIN_VERSION); then \
15 - echo '*** Your dtc is too old, please upgrade to dtc $(DTC_MIN_VERSION) or newer'; \
16 - false; \
17 - else \
18 - if [ -n "$(CONFIG_PYLIBFDT)" ]; then \
19 - if ! echo "import libfdt" | $(PYTHON3) 2>/dev/null; then \
20 - echo '*** pylibfdt does not seem to be available with $(PYTHON3)'; \
21 - false; \
22 - fi; \
23 - fi; \
24 - fi; \
25 - fi; \
26 - fi
27 + $(MAKE) $(build)=scripts/dtc
28
29 # ---------------------------------------------------------------------------
30 quiet_cmd_cpp_lds = LDS $@