diff options
| author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-03-17 10:14:54 +0200 | 
|---|---|---|
| committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-03-17 10:16:38 +0200 | 
| commit | 606f38a2221648ca5c5fa292c9f71d2ddd59fa66 (patch) | |
| tree | 26d11905fda474261433c580c6fb58f4f4a85e59 /ubi-utils/old-utils/scripts/Makefile | |
| parent | a2d010f8fca904fffa3c6e5a5d148cc96a37a08a (diff) | |
ubi-utils: re-arrange directory layout
Move new-utils to ubi-utils and old ones to ubi-utils/old-utils.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/old-utils/scripts/Makefile')
| -rw-r--r-- | ubi-utils/old-utils/scripts/Makefile | 75 | 
1 files changed, 75 insertions, 0 deletions
| diff --git a/ubi-utils/old-utils/scripts/Makefile b/ubi-utils/old-utils/scripts/Makefile new file mode 100644 index 0000000..ebd9bc6 --- /dev/null +++ b/ubi-utils/old-utils/scripts/Makefile @@ -0,0 +1,75 @@ +# +# Makefile +# +# Testcase for UBI pfi update. +# +# Author:	Frank Haverkamp <haverkam@de.ibm.com> +# + +card		= test +mkpfi_cfg	= test.cfg + +# +# Some default values you might want to overwrite. Try it if you need +# it and add more if needed. Note that no real sanity checking is done +# on those values. If you do it wrong your card has no valid PDD data. +# + +PATH := $(PATH):/opt/ppc/usr/bin:../perl:.. + +dd		= dd +sed		= sed +bin2nand	= bin2nand +ubigen		= ubigen +mkpfi		= mkpfi -v +pfi2bin		= pfi2bin -v + +vmlinux_bin	?= test_vmlinux.bin +rootfs_bin	?= test_rootfs.bin +spl_bin		?= test_u-boot.bin +pdd_txt		?= pdd.txt + +flashtype	?= nand +pagesize	?= 2048 + +compl		?= $(card)_complete +compl_pfi	?= $(compl).pfi +compl_img	?= $(compl).img + +compl_nand2048_mif=$(compl).$(flashtype)$(pagesize).mif +compl_nand2048_img=$(compl).$(flashtype)$(pagesize).img + +all: $(compl_pfi) $(compl_nand2048_mif) + +$(compl_pfi): $(vmlinux_bin) $(rootfs_bin) $(spl_bin) +	$(mkpfi) -c $(mkpfi_cfg) + +# Binary data and out of band data (OOB) +# +$(compl_nand2048_mif): $(compl_img) +	$(bin2nand) -p $(pagesize) -o $(compl_nand2048_mif) $< + +# Binary data only +# +$(compl_img): $(compl_pfi) +	$(pfi2bin) -j $(pdd_txt) -o $@ $< + +# +# Default data +# +# If the binary data is not available in the current working directory +# we try to create symlinks to our test data. +# +$(vmlinux_bin) $(rootfs_bin) $(spl_bin): +	@echo +	@echo "No $@ found, will use defaults !" +	@echo +	@echo "OR press CTRL-C to provide your own $@" && 	\ +	sleep 1 &&						\ +	$(dd) if=/dev/urandom of=$@ bs=1M count=1 + +clean: +	$(RM) *.pfi *~ + +distclean: clean +	$(RM) *.bin *.mif *.oob *.img | 
