Skip to contentSkip to conversation

U-boot "make config" errors

U-Boot alfred steele 3 participants 4 messages Aug 6, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,
I have been building/using u-boot for uite some time now. I never had issues with it. Now, I am trying to use a versioning system to store a version of u-boot and then check out a fresh version from the repository on a different workspace and trying to compile it. I get the following errors on running config for that specific platform. u-boot]$ make mx31_config
Configuring for mx31 board...
rm: cannot remove `asm': Is a directory
make: *** [spin2_config] Error 1

I tracked this problem to be in the include directory and i can alleviate this problem by copying the whole "include" directory from my local "known to be working version".
But every time i do a build on freshly checked out version, it gives me the same error as above.

Thanks,
Alfred

#1 lore raw
Quoted 11 lines

Hi all,
I have been building/using ?u-boot for uite some time now. I never had issues with it. Now, I am trying to use a versioning system to store a version of u-boot and then check out a fresh version from the repository on a different workspace and trying to compile it. I get the following errors on running config for that specific platform. u-boot]$ make mx31_config
Configuring for mx31 board...
rm: cannot remove `asm': Is a directory
make: *** [spin2_config] Error 1

Quoted 5 lines

I tracked this problem to be in the include directory and i can alleviate this problem by copying the whole "include" directory from my local "known to be working version".
But every time i do a build on freshly checked out version, it gives me the same error as above.

To add to that i am having problems doing a distclean too. make distclean
rm: cannot remove `include/asm/arch': Is a directory
rm: cannot remove `include/asm': Is a directory
make: *** [clobber] Error 1

Thanks,
Alfred.

#2 lore raw
In reply to alfred steele
Quoted 3 lines

u-boot]$ make mx31_config
Configuring for mx31 board...
rm: cannot remove `asm': Is a directory

Asm should be a symlink. It seems you checked in your own versioning system the directory pointed by the link and not the link itself.

Most likely your versioning system doesn't handle symlinks. You should learn git instead of replicating the repository: it takes some time, but it's well spent.

/alessandro

#3 lore raw
In reply to alfred steele

Dear alfred steele,

Quoted 9 lines · In message <[email protected]> you…

I have been building/using u-boot for uite some time now. I never had issues with it. Now, I am trying to use a versioning system to store a version of u-boot and then check out a fresh version from the repository on a different workspace and trying to compile it. I get the following errors on running config for that specific platform. u-boot]$ make mx31_config
Configuring for mx31 board...
rm: cannot remove `asm': Is a directory

Well, isn't this ia clear indication of the problem? Make sure that incluse/asm is _not_ a directory. Make sure to check in only files and directories that really belong to the source distribution.

Even better, dump your current versioning system, and use git instead :-)

Quoted 3 lines

I tracked this problem to be in the include directory and i can alleviate this problem by copying the whole "include" directory from my local "known to be working version".

At least make sure to run "make mrproper" before copying into the repository.

Quoted 2 lines

But every time i do a build on freshly checked out version, it gives me the same error as above.

Sure. In your case include/asm has been incorrectly copied.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In the beginning there was nothing.
And the Lord said "Let There Be Light!"
And still there was nothing, but at least now you could see it.