Browse Source

rename package and use github release

Waldemar Brodkorb 7 years ago
parent
commit
9d6bea2bab
3 changed files with 10 additions and 8 deletions
  1. 9 7
      package/dtc/Makefile
  2. 0 0
      package/dtc/patches/patch-Makefile
  3. 1 1
      package/u-boot/Makefile

+ 9 - 7
package/device-tree-compiler/Makefile → package/dtc/Makefile

@@ -3,22 +3,24 @@
 
 include $(ADK_TOPDIR)/rules.mk
 
-PKG_NAME:=		device-tree-compiler
-PKG_VERSION:=		b06e55c88b9b922ff7e25cd62a4709b65524f0fc
-PKG_GIT:=		hash
+PKG_NAME:=		dtc
+PKG_VERSION:=		1.4.2
 PKG_RELEASE:=		1
+PKG_HASH:=		4c1f9e55106c5111de091beba04d5ab89d6e52f185684fca0944d3b62ce5f084
 PKG_DESCR:=		compiler for dts files
 PKG_SECTION:=		sys/misc
 HOST_BUILDDEP:=		m4-host flex-host bison-host
 PKG_URL:=		http://www.devicetree.org/Device_Tree_Compiler
-PKG_SITES:=		https://git.kernel.org/pub/scm/utils/dtc/dtc.git
+PKG_SITES:=		https://github.com/dgibson/dtc/archive/
 
-PKG_CFLINE_DEVICE_TREE_COMPILER:=	depends on ADK_HOST_ONLY
+DISTFILES:=		v$(PKG_VERSION).tar.gz
+
+PKG_CFLINE_DTC:=	depends on ADK_HOST_ONLY
 
 include $(ADK_TOPDIR)/mk/host.mk
 include $(ADK_TOPDIR)/mk/package.mk
 
-$(eval $(call HOST_template,DEVICE_TREE_COMPILER,device-tree-compiler,$(PKG_VERSION)-$(PKG_RELEASE)))
+$(eval $(call HOST_template,DTC,dtc,$(PKG_VERSION)-$(PKG_RELEASE)))
 
 HOST_STYLE:=		manual
 
@@ -26,7 +28,7 @@ host-build:
 	(cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
 		${HOST_MAKE_FLAGS} dtc)
 
-device-tree-compiler-hostinstall:
+dtc-hostinstall:
 	$(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
 	$(INSTALL_BIN) $(WRKBUILD)/dtc $(STAGING_HOST_DIR)/usr/bin
 

+ 0 - 0
package/device-tree-compiler/patches/patch-Makefile → package/dtc/patches/patch-Makefile


+ 1 - 1
package/u-boot/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		994e7b9e0e350d9f91f5892d5e5bff00d3714a4962f520f78a64a461ef950ba9
 PKG_DESCR:=		portable bootloader
 PKG_SECTION:=		base/boot
-HOST_BUILDDEP:=		libressl-host device-tree-compiler-host
+HOST_BUILDDEP:=		libressl-host dtc-host
 PKG_BUILDDEP:=		u-boot-host
 PKG_URL:=		http://www.denx.de/wiki/U-Boot	
 PKG_SITES:=		ftp://ftp.denx.de/pub/u-boot/