Dec 14 2009

Pre-defined variables in PADS

Published by marek at 4:19 pm under Software

When adding different packages in the PADs framework, I frequently find myself searching for a list of PADS variables and their values.  With PADS residing on my machine in the ‘/home/mark/pads/2.0.11.2′ directory, below are my variables.

[root@localhost 2.0.11.2]# cat output.txt
## Paths ##
BASE_DIR= /home/mark/pads/2.0.11.2
BUILD_DIR= /home/mark/pads/2.0.11.2/build_warp
DL_DIR= /home/mark/pads/2.0.11.2/dl
PERSISTENT_STORAGE= /home/mark/pads/2.0.11.2/build_warp/root/persistent
PERSISTENT1_STORAGE= /home/mark/pads/2.0.11.2/build_warp/root/persistent1
PERSISTENT2_STORAGE= /home/mark/pads/2.0.11.2/build_warp/root/persistent2
STAGING_INC= /home/mark/pads/2.0.11.2/build_warp/staging/usr/include
TARGET_DIR= /home/mark/pads/2.0.11.2/build_warp/root
## Tools ##
ARCH= powerpc
CROSS_COMPILE= ppc_4xxFP-
MAKE= make
MAKE1= make
PATCH_KERNEL= /home/mark/pads/2.0.11.2/config/kernel-patch.sh
RM= rm -f
SVN= svn co
TARGET_CC= /home/mark/pads/2.0.11.2/toolchain/usr/bin/powerpc-linux-gcc
TARGET_CXX= /home/mark/pads/2.0.11.2/toolchain/usr/bin/powerpc-linux-g++
TARGET_AR= /home/mark/pads/2.0.11.2/toolchain/usr/bin/powerpc-linux-ar
TAR_OPTIONS= -xf
WGET= wget --passive-ftp -nd

 

In case people were wondering how I got these values.  I add the following lines just before the MAKE command in the hello_world package’s makefile (hello_world.mk) and then built this individual package (’make hello_world’).  The results are placed in ‘output.txt’ in the directory where PADS was originally downloaded.

...
#Compile and install if applicable
hello_world: $(HELLO_WORLD_DIR)/.configured
        echo "## Paths ##" >> output.txt
        echo "BASE_DIR=" $(BASE_DIR) >> output.txt
        echo "BUILD_DIR=" $(BUILD_DIR) >> output.txt
        echo "DL_DIR=" $(DL_DIR) >> output.txt
        echo "PERSISTENT_STORAGE=" $(PERSISTENT_STORAGE) >> output.txt
        echo "PERSISTENT1_STORAGE=" $(PERSISTENT1_STORAGE) >> output.txt
        echo "PERSISTENT2_STORAGE=" $(PERSISTENT2_STORAGE) >> output.txt
        echo "STAGING_INC=" $(STAGING_INC) >> output.txt
        echo "TARGET_DIR=" $(TARGET_DIR) >> output.txt
        echo " " >> output.txt
        echo "## Tools ##" >> output.txt
        echo "ARCH=" $(ARCH) >> output.txt
        echo "CROSS_COMPILE=" $(CROSS_COMPILE) >> output.txt
        echo "MAKE=" $(MAKE) >> output.txt
        echo "MAKE1=" $(MAKE1) >> output.txt
        echo "PATCH_KERNEL=" $(PATCH_KERNEL) >> output.txt
        echo "RM=" $(RM) >> output.txt
        echo "SVN=" $(SVN) >> output.txt
        echo "TARGET_CC=" $(TARGET_CC) >> output.txt
        echo "TARGET_CXX=" $(TARGET_CXX) >> output.txt
        echo "TARGET_AR=" $(TARGET_AR) >> output.txt
        echo "TAR_OPTIONS=" $(TAR_OPTIONS) >> output.txt
        echo "WGET=" $(WGET) >> output.txt
        $(MAKE) -C $(HELLO_WORLD_DIR)
...

If there are any I missed please let me know.  Also some of these variables can be found in the documentation at

http://outgoingftp.pikatech.com/appliance/2.0/docs_2.0.6/html/pads_user_guide/frames.html?frmname=topic&frmfile=PADS_AddPackage.html

No responses yet

Trackback URI | Comments RSS

Leave a Reply