Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7228
b: refs/heads/master
c: bd5bdd8
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg committed Jul 14, 2005
1 parent e8ff6a1 commit 608afa6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d30e3a8995c9fa9e8471bb1dff8e070638df5ea
refs/heads/master: bd5bdd875b29e882f80d2cd6dd1da468641dad2a
3 changes: 2 additions & 1 deletion trunk/init/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ $(obj)/version.o: include/linux/compile.h

include/linux/compile.h: FORCE
@echo ' CHK $@'
@$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)"
12 changes: 8 additions & 4 deletions trunk/scripts/mkcompile_h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
TARGET=$1
ARCH=$2
SMP=$3
CC=$4
PREEMPT=$4
CC=$5

# If compile.h exists already and we don't own autoconf.h
# (i.e. we're not the same user who did make *config), don't
Expand All @@ -26,8 +27,10 @@ fi


UTS_VERSION="#$VERSION"
if [ -n "$SMP" ] ; then UTS_VERSION="$UTS_VERSION SMP"; fi
UTS_VERSION="$UTS_VERSION `LC_ALL=C LANG=C date`"
CONFIG_FLAGS=""
if [ -n "$SMP" ] ; then CONFIG_FLAGS="SMP"; fi
if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT"; fi
UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS `LC_ALL=C LANG=C date`"

# Truncate to maximum length

Expand All @@ -37,7 +40,8 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
# Generate a temporary compile.h

( echo /\* This file is auto generated, version $VERSION \*/

if [ -n "$CONFIG_FLAGS" ] ; then echo "/* $CONFIG_FLAGS */"; fi

echo \#define UTS_MACHINE \"$ARCH\"

echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\"
Expand Down

0 comments on commit 608afa6

Please sign in to comment.