[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: porting to hppa-ipl
From: |
Yoshinori K. Okuji |
Subject: |
Re: porting to hppa-ipl |
Date: |
Sun, 30 Jul 2006 18:06:15 +0200 |
User-agent: |
KMail/1.8.2 |
On Sunday 30 July 2006 16:31, Jeff Bailey wrote:
> One of the nice things, though, is that I have the support of the folks
> who wrote palo.
Great. :)
> According to GCC:
>
> gcc -Ihello -I./hello -I. -Iinclude -I./include -Wall -W -Wall -W -Wshadow
> -Wpointer-arith -Wmissing-prototypes -Wundef
> -Wstrict-prototypes -g -Os -fno-builtin -c -o hello_mod-hello_hello.o
> hello/hello.c In file included from include/grub/normal.h:28,
> from hello/hello.c:27:
> include/grub/script.h:27:29: error: grub_script.tab.h: No such file or
> directory
Right. But I have this dependency generated automatically as well:
hello_mod-hello_hello.o
hello_mod-hello_hello.d : ../hello/hello.c ../include/grub/types.h config.h \
include/grub/cpu/types.h ../include/grub/misc.h \
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/include/stdarg.h \
../include/grub/symbol.h ../include/grub/err.h ../include/grub/mm.h \
../include/grub/dl.h ../include/grub/normal.h ../include/grub/setjmp.h \
include/grub/cpu/setjmp.h ../include/grub/arg.h \
../include/grub/script.h ../include/grub/parser.h grub_script.tab.h
So the question is why you don't have it. Please look at the content of
hello_mod-hello_hello.d.
> > > 2) When hacking on the build env, how do I force things to be
> > > regenerated? When I do "make conf/hppa-ipl.mk", it doesn't generate
> > > the file for me.
> >
> > Isn't it normal in make??? When I play with make, I do "rm -f FILE; make
> > FILE". I don't know anything else more elegant.
>
> Right it is normal in make, which is why I was surprised it didn't work:
>
> address@hidden:~/Programming/cvstree/grub2/conf$ rm hppa-ipl.mk
> address@hidden:~/Programming/cvstree/grub2/conf$ cd ..
> address@hidden:~/Programming/cvstree/grub2$ make conf/hppa-ipl.mk
> Makefile:105: conf/hppa-ipl.mk: No such file or directory
> make: *** No rule to make target `conf/hppa-ipl.mk'. Stop.
> address@hidden:~/Programming/cvstree/grub2$ cd conf
> address@hidden:~/Programming/cvstree/grub2/conf$ make hppa-ipl.mk
> make: *** No rule to make target `hppa-ipl.mk'. Stop.
> address@hidden:~/Programming/cvstree/grub2/conf$ ls hppa-ipl.rmk
> hppa-ipl.rmk
> address@hidden:~/Programming/cvstree/grub2/conf$
Since it works for me, all I can say is "I don't know". Have you added
hppa-ipl.rmk into RMKFILES in Makefile.in?
Okuji