public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: Bojan Popovic <bojanpopovic@beotel.rs>
To: linux-8086@vger.kernel.org
Subject: Re: [PATCH] Ansi-C compatibility fixes
Date: Mon, 20 Aug 2012 21:30:56 +0200	[thread overview]
Message-ID: <20120820213056.23a78842@deathstar.universe> (raw)
In-Reply-To: <502678AC.2060307@jodybruchon.com>

Hi, 

I tried building the current git snapshot. It builds fine (tested on
Slackware 14.0rc2) and the image runs nicely in Qemu 1.1.1.

But there is a small problem in elks/arch/i86/Makefile. Newline (\n)
is not parsed by echo and it gets in asm-offsets.h (ie: \n#endif instead
of #endif). 

--- Makefile.orig	2012-08-20 20:54:06.000000000 +0200
+++ Makefile	2012-08-20 21:06:07.197644614 +0200
@@ -88,7 +88,7 @@
 $(BASEDIR)/include/arch/asm-offsets.h: kernel/asm-offsets.c
 	$(CC) $(CFLAGS) -S -o asm-offsets.s kernel/asm-offsets.c
 	echo '#ifndef ASM_OFFSETS_H' >
$(BASEDIR)/include/arch/asm-offsets.h
-	echo '#define ASM_OFFSETS_H\n' >>
$(BASEDIR)/include/arch/asm-offsets.h
+	echo -e '#define ASM_OFFSETS_H\n' >>
$(BASEDIR)/include/arch/asm-offsets.h sed -e '/^[^m].*/ d' \
 	-e 's/\],/  /' \
 	-e 's/ #/ /' \
@@ -97,7 +97,7 @@
 	-e 's/^.*\[_/#define /' \
 	-e 's/ax/0/' \
 	< asm-offsets.s | grep -e define >>
$(BASEDIR)/include/arch/asm-offsets.h
-	echo '\n#endif' >> $(BASEDIR)/include/arch/asm-offsets.h
+	echo -e '\n#endif' >> $(BASEDIR)/include/arch/asm-offsets.h
 	rm asm-offsets.s
 
 #########################################################################

Bojan.

On Sat, 11 Aug 2012 11:22:20 -0400
Jody Bruchon <jody@jodybruchon.com> wrote:

> Juan and everyone else, I just wanted to let you all know that the 
> patches submitted to this point have been pushed to the Git
> repository on SourceForge. Thank you Juan! You've done some pretty
> amazing work on the ELKS project. I'm definitely impressed at what
> you've managed to do.
> 
> I'm thinking of dropping another "release" of 0.1.5 after some more 
> testing. It couldn't hurt to get these serious bug fixes out there as
> a version bump.
> 
> Jody Bruchon



  reply	other threads:[~2012-08-20 19:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 22:37 [PATCH] Ansi-C compatibility fixes Juan Perez-Sanchez
2012-07-22  8:45 ` ht-lab
2012-08-11 15:22 ` Jody Bruchon
2012-08-20 19:30   ` Bojan Popovic [this message]
2012-11-12 23:17   ` Juan Perez-Sanchez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120820213056.23a78842@deathstar.universe \
    --to=bojanpopovic@beotel.rs \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox