From: Wolfgang Denk Date: Wed, 27 Sep 2017 16:15:21 +0200 Subject: [U-Boot] [PATCH 2/5] Revert "dtc: Switch to building and using our own dtc unless provided" In-Reply-To: <20170927141524.5920-1-wd@denx.de> References: <1506263222-7080-1-git-send-email-trini@konsulko.com> <20170927141524.5920-1-wd@denx.de> Message-ID: <20170927141524.5920-3-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de This reverts commit 36dd5f1b8abcd0aa5f8490b3ef1e4e7ecce2eb8c. This patch is part of a series which has never been reviewed and has not been generally accepted by the community. Signed-off-by: Wolfgang Denk Cc: Albert Aribaud Cc: Alexander Graf Cc: Alexey Brodkin Cc: Anatolij Gustschin Cc: Andre Przywara , Cc: Andreas Bie=C3=9Fmann Cc: Angelo Dureghello Cc: Bin Meng Cc: Daniel Hellstrom Cc: Daniel Schwierzeck Cc: Heiko Schocher Cc: Heinrich Schuchardt Cc: Huan Wang Cc: Jagan Teki Cc: Joe Hershberger Cc: Kim Phillips Cc: Kyungmin Park Cc: Lukasz Majewski Cc: Macpaul Lin Cc: Marek Vasut Cc: Marek Vasut Cc: Masahiro Yamada Cc: Michal Simek Cc: Minkyu Kang Cc: Nobuhiro Iwamatsu Cc: Pantelis Antoniou Cc: Prafulla Wadaskar Cc: Przemyslaw Marczak Cc: Robert Nelson Cc: Scott Wood Cc: Simon Glass Cc: Sonic Zhang Cc: Stanislav Galabov Cc: Stefan Roese Cc: Stefano Babic Cc: Stephen Warren Cc: Thomas Chou Cc: Tom Rini Cc: Tom Warren Cc: u-boot at lists.denx.de Cc: Vagrant Cascadian Cc: Vipin Kumar Cc: York Sun --- .travis.yml | 6 ++++-- Makefile | 10 ++++++++-- dts/Kconfig | 4 ---- scripts/Makefile | 1 - 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00b2a73a5e..9dfd016da0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,9 +26,11 @@ addons: - grub-efi-ia32-bin - rpm2cpio - wget - - device-tree-compiler =20 install: + # install latest device tree compiler + - git clone --depth=3D1 -b v1.4.3 git://git.kernel.org/pub/scm/utils/dtc/= dtc.git /tmp/dtc + - make -j4 -C /tmp/dtc # Clone uboot-test-hooks - git clone --depth=3D1 git://github.com/swarren/uboot-test-hooks.git /tm= p/uboot-test-hooks - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname` @@ -49,7 +51,7 @@ install: =20 env: global: - - PATH=3D/tmp/qemu-install/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin + - PATH=3D/tmp/dtc:/tmp/qemu-install/bin:/tmp/uboot-test-hooks/bin:/usr= /bin:/bin - PYTHONPATH=3D/tmp/uboot-test-hooks/py/travis-ci - BUILD_DIR=3Dbuild - HOSTCC=3D"cc" diff --git a/Makefile b/Makefile index b7d5cbb3f9..e058e9854b 100644 --- a/Makefile +++ b/Makefile @@ -349,7 +349,7 @@ OBJDUMP =3D $(CROSS_COMPILE)objdump AWK =3D awk PERL =3D perl PYTHON ?=3D python -DTC ?=3D $(objtree)/scripts/dtc/dtc +DTC ?=3D dtc CHECK =3D sparse =20 CHECKFLAGS :=3D -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ @@ -872,7 +872,7 @@ endif PHONY +=3D dtbs dtbs: dts/dt.dtb @: -dts/dt.dtb: u-boot +dts/dt.dtb: checkdtc u-boot $(Q)$(MAKE) $(build)=3Ddts dtbs =20 quiet_cmd_copy =3D COPY $@ @@ -1447,6 +1447,12 @@ SYSTEM_MAP =3D \ System.map: u-boot @$(call SYSTEM_MAP,$<) > $@ =20 +checkdtc: + @if test $(call dtc-version) -lt 010403; then \ + echo '*** Your dtc is too old, please upgrade to dtc 1.4.3 or newer'; \ + false; \ + fi + ######################################################################### =20 # ARM relocations should all be R_ARM_RELATIVE (32-bit) or diff --git a/dts/Kconfig b/dts/Kconfig index 44fc9fe36d..b4b7ddc144 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -5,15 +5,11 @@ config SUPPORT_OF_CONTROL bool =20 -config DTC - bool - menu "Device Tree Control" depends on SUPPORT_OF_CONTROL =20 config OF_CONTROL bool "Run-time configuration via Device Tree" - select DTC help This feature provides for run-time configuration of U-Boot via a flattened device tree. diff --git a/scripts/Makefile b/scripts/Makefile index 9d55241463..3e10c16d59 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -21,4 +21,3 @@ build_docproc: $(obj)/docproc =20 # Let clean descend into subdirs subdir- +=3D basic kconfig -subdir-$(CONFIG_DTC) +=3D dtc --=20 2.13.3