[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] bash versus sh part 3




Re-checking all the files, and "trapping" the "let" command with a homemade script, has led me to the following conclusions, to compile petalinux in a system where sh is sh and bash is bash.

No guarantee whatsoever!   Ok?


Replace  trunk   with $PETALINUX on the filenames


trunk/software/linux-2.6.x-petalogix/scripts/extract-ikconfig

Has been changed to be sh compatible on kernel 2.6.30 ( on kernel 2.6.28 it was not ),
so one can grab the 2.6.30 version and overwrite  the old one.

trunk/software/linux-2.6.x-petalogix/scripts/package/builddeb
trunk/software/linux-2.6.x-petalogix/scripts/ver_linux

These  two are  not critical (  I think ... )

trunk/software/petalinux-dist/u-boot/board/integratorap/ split_by_variant.sh trunk/software/petalinux-dist/u-boot/board/integratorcp/ split_by_variant.sh
trunk/software/petalinux-dist/u-boot/board/versatile/split_by_variant.sh

Have been upgraded and are in a different place in the last U-Boot, but are not critical, because they are for ARM processors.

trunk/software/petalinux-dist/u-boot/petalinux-uboot-config
Changed to bash


trunk/software/petalinux-dist/uClibc/extra/scripts/fix_includes.sh
Ignored


trunk/tools/common/petalogix/bin/petalinux-boot-prebuilt
trunk/tools/common/petalogix/bin/petalinux-copy-autoconfig
trunk/tools/common/petalogix/bin/petalinux-exclude
trunk/tools/common/petalogix/bin/petalinux-gen-initrd
trunk/tools/common/petalogix/bin/petalinux-new-app
trunk/tools/common/petalogix/bin/petalinux-new-module
trunk/tools/common/petalogix/bin/petalinux-new-platform
trunk/tools/common/petalogix/bin/petalinux-prepare-hardware
trunk/tools/common/petalogix/bin/petalinux-reloc-blob
trunk/tools/common/petalogix/bin/petalinux-remove-platform
trunk/tools/common/petalogix/bin/petalinux-send-configs
trunk/tools/common/petalogix/bin/petalinux-set-targetdir

All the these were changed from sh to bash




On $PETALINUX/software/petalinux-dist/vendors/Petalogix/common/ common.mak line 474 it is written

if [ "$(CONFIG_SYSTEM_COPY_TO_TFTPBOOT)" == 'y' ] ; then \


It  works better like this:

if [ "$(CONFIG_SYSTEM_COPY_TO_TFTPBOOT)" = "y" ] ; then \



And then, one that was hard to find:    ;-) ;-) ;-)
on the file:

trunk/software/petalinux-dist/u-boot/board/petalogix/microblaze-auto/ config.mk

insert at line 45  the line
SHELL=/bin/bash



My best regards

Paulo Ferreira










___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/