Skip to contentSkip to conversation

Rules.make: Allow overwriting DESTDIR

PATCH New Nikhil Devshatwar 1 participant 1 message Dec 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rules.make: Allow overwriting DESTDIR

DESTDIR in the Rules.make points to the path where the files should be installed.

setup scripts update this to the targetNFS location but it cannot be used for installing files in the SD card. When DESTDIR is defined conditionally, it allows following

DESTDIR=/path/to/sd/card make install #custom installation make install #NFS installation

---
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Rules.make        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Rules.make +1 -1
index 96f248a..3382d93 100644
@@ -14,7 +14,7 @@ UBOOT_MACHINE=__UBOOT_MACHINE__
 export TI_SDK_PATH=__SDK__INSTALL_DIR__
 
 #root of the target file system for installing applications
-DESTDIR=__DESTDIR__
+DESTDIR ?=__DESTDIR__
 
 #Points to the root of the Linux libraries and headers matching the
 #demo file system.
Signature · 1 line
1.9.1