From f4ecba6424961613b30ccc01d217387adb57a393 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 12 Jun 2007 16:08:00 +0000 Subject: [PATCH] Fixed a warning produced by DASH shell. It is necessary to replace all generic Makefiles. This warning was caused by improper operator used for string comparison in test ([) command. darcs-hash:20070612160851-f2ef6-382f44c89770dba8ca1e17608d68022b76ba63e2.gz --- leaf-makefile/Makefile | 2 +- snippets/linux | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/leaf-makefile/Makefile b/leaf-makefile/Makefile index f595272..08cf5ff 100644 --- a/leaf-makefile/Makefile +++ b/leaf-makefile/Makefile @@ -1,7 +1,7 @@ # Generic directory or leaf node makefile for OCERA make framework ifndef MAKERULES_DIR -MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" == `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) ) +MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) ) endif ifeq ($(MAKERULES_DIR),) diff --git a/snippets/linux b/snippets/linux index c7dbc0d..10bb066 100644 --- a/snippets/linux +++ b/snippets/linux @@ -468,7 +468,7 @@ $(2)/$(1)$(KERN_LINK_SUFFIX): $$($(1)_OBJS) @echo "$(2)/$(1)$(KERN_LINK_SUFFIX): \\" >$(KERN_OBJS_DIR)/$(1).mod.d @sed -n -e 's/^LOAD \(.*\)$$$$/ \1 \\/p' $(KERN_OBJS_DIR)/$(1).mod.map >>$(KERN_OBJS_DIR)/$(1).mod.d @echo >>$(KERN_OBJS_DIR)/$(1).mod.d - @if [ "$(KERN_EXE_SUFFIX)" == ".ko" ] ; then \ + @if [ "$(KERN_EXE_SUFFIX)" = ".ko" ] ; then \ echo $(1) >>$(KERN_MODPOST_DIR)/module-changes ; \ echo $(1) >>$(KERN_MODPOST_DIR)/$(1).mod.stamp ; \ fi -- 2.39.2