]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: arch/sh/boot - fix shell usage
authorDavid McCullough <david_mccullough@au.securecomputing.com>
Thu, 26 Jul 2007 08:43:41 +0000 (17:43 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 26 Jul 2007 08:43:41 +0000 (17:43 +0900)
Fix the shell call to explicitly use bash, since they are bash
specific and not all systems have bash as the default.

Signed-off-by: David McCullough <david_mccullough@au.securecomputing.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boot/Makefile
arch/sh/boot/compressed/Makefile

index 11dc272c618ef0f559fd12568a893047179f0cf1..4c5ffdcd55b675aead50a32aaffe86c095ce8456 100644 (file)
@@ -32,9 +32,10 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
 $(obj)/compressed/vmlinux: FORCE
        $(Q)$(MAKE) $(build)=$(obj)/compressed $@
 
-KERNEL_LOAD    := $(shell printf "0x%8x" $$[$(CONFIG_PAGE_OFFSET)  + \
-                                            $(CONFIG_MEMORY_START) + \
-                                            $(CONFIG_ZERO_PAGE_OFFSET)+0x1000])
+KERNEL_LOAD    := $(shell /bin/bash -c 'printf "0x%8x" \
+                    $$[$(CONFIG_PAGE_OFFSET)  + \
+                       $(CONFIG_MEMORY_START) + \
+                       $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]')
 
 quiet_cmd_uimage = UIMAGE  $@
       cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
index d9512416f88500847acff0eae59a90a8c3a092e1..013504ae112295c8aea032df4eb962cbd84aa7d6 100644 (file)
@@ -16,9 +16,10 @@ endif
 #
 # IMAGE_OFFSET is the load offset of the compression loader
 #
-IMAGE_OFFSET   := $(shell printf "0x%08x" $$[$(CONFIG_PAGE_OFFSET)  + \
-                                             $(CONFIG_MEMORY_START) + \
-                                             $(CONFIG_BOOT_LINK_OFFSET)])
+IMAGE_OFFSET   := $(shell /bin/bash -c 'printf "0x%08x" \
+                    $$[$(CONFIG_PAGE_OFFSET)  + \
+                       $(CONFIG_MEMORY_START) + \
+                       $(CONFIG_BOOT_LINK_OFFSET)]')
 
 LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)