1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 70d9c156ec86d63de0f7bdae50540ffa492b25ec1d69491c7520845c860b9a62
10 PKG_DESCR
:= compiler for dts files
11 PKG_SECTION
:= sys
/misc
12 HOST_BUILDDEP
:= m4-host flex-host bison-host
13 PKG_URL
:= http
://www.devicetree.org
/Device_Tree_Compiler
14 PKG_SITES
:= https
://github.com
/dgibson
/dtc
/archive
/refs
/tags/
16 DISTFILES
:= v
$(PKG_VERSION
).
tar.gz
18 PKG_CFLINE_DTC
:= depends on ADK_HOST_ONLY
20 include $(ADK_TOPDIR
)/mk
/host.mk
21 include $(ADK_TOPDIR
)/mk
/package.mk
23 $(eval
$(call HOST_template
,DTC
,dtc
,$(PKG_VERSION
)-$(PKG_RELEASE
)))
26 HOST_MAKE_FLAGS
+= NO_PYTHON
=1
29 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
30 ${HOST_MAKE_FLAGS} all)
33 $(INSTALL_DIR
) $(STAGING_HOST_DIR
)/usr
/bin
34 $(INSTALL_BIN
) $(WRKBUILD
)/dtc
$(STAGING_HOST_DIR
)/usr
/bin
35 $(INSTALL_BIN
) $(WRKBUILD
)/fdtget
$(STAGING_HOST_DIR
)/usr
/bin
36 $(INSTALL_BIN
) $(WRKBUILD
)/fdtput
$(STAGING_HOST_DIR
)/usr
/bin
38 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
39 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk