I am getting an error that has to do with a kbuild permission problem. 
If I build a kernel, make clean, and then try to rebuild the kernel
again, the 

tduffy@curie:/build2/tduffy/linux_kbuild$ make -f Makefile-2.5 clean
tduffy@curie:/build2/tduffy/linux_kbuild$ make -f Makefile-2.5
Using ARCH='sparc64' AS='as' LD='ld' CC='sparc64-linux-gcc'
CPP='sparc64-linux-gcc -E' AR='ar' HOSTAS='as' HOSTLD='gcc' HOSTCC='gcc'
HOSTAR='ar'
Generating global Makefile
  phase 1 (find all inputs)
cp: cannot create regular file
`/tmp/newkbuild/scripts/pp_makefile2_parse.tab.c': Permission denied
cp: cannot create regular file
`/tmp/newkbuild/scripts/pp_makefile2_parse.tab.h': Permission denied
+ bison -t -d -b /tmp/newkbuild/scripts/pp_makefile2_parse
/build2/tduffy/linux_kbuild/scripts/pp_makefile2_parse.y
/build2/tduffy/linux_kbuild/scripts/pp_makefile2_parse.y:411: warning:
previous rule lacks an ending `;'
bison: cannot open file
`/tmp/newkbuild/scripts/pp_makefile2_parse.tab.c': Permission denied
make: *** [/tmp/newkbuild/scripts/pp_makefile2_parse.tab.c] Error 2

$ ls -l $KBUILD_OBJTREE/scripts/pp_makefile2_parse.tab.c
-r--r--r--    1 tduffy   1001        79042 Apr 25 12:02 
/tmp/newkbuild/scripts/pp_makefile2_parse.tab.c

so, I need to chmod -R u+w $KBUILD_OBJTREE/scripts/ in order to make
things happy again.

I think the problem comes from the fact that all the source files I have
in my tree are checked into source control, so they are all 444.  And
when they are generated in KBUILD_OBJTREE, they keep the original
permissions.  Is there anyway to override this?

thanks!

-tduffy


_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to