Skip to contentSkip to conversation

Make DL_DIR absolute

Buildroot New Allan W. Nielsen 1 participant 2 messages May 10, 2011

lore
Share & tools
lore
#0 lore raw

As suggested by Thomas Petazzoni here is a patch which converts DL_DIR to a relative path. The reason for this is that GIT_DOWNLOAD assumes an absolute path

#1 lore raw

PATCH 1/1 Makefile.package.in: Fixing problem with relative in BR2_DL_DIR

When using DOWNLOAD_GIT and BR2_DL_DIR is assigned to an relative path build root will store the generated tar file in the wrong location

---
 package/Makefile.package.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/Makefile.package.in +1 -0
index 1e87256..51d3341 100644
@@ -84,6 +84,7 @@ DL_DIR=$(call qstrip,$(BR2_DL_DIR))
 ifeq ($(DL_DIR),)
 DL_DIR:=$(TOPDIR)/dl
 endif
+DL_DIR:=$(shell readlink -f $(DL_DIR))
 
 ################################################################################
 # The DOWNLOAD_{GIT,SVN,BZR} helpers are in charge of getting a
Signature · 1 line
1.7.3.4