Skip to contentSkip to conversation

arch/powerpc/boot/.gitignore questions

DISCUSSION Randy Dunlap 4 participants 7 messages Sep 10, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I was looking at the arch/powerpc/boot/.gitignore file. Why are all of those non-local-directory files listed there? E.g., empty.c, inf*.c, inf*.h, zconf.h, zlib.h, zutil.h, etc.

And what is "dtc"? I see a dtc-src directory, but "dtc" is MIA. Same for kernel-vmlinux.strip.*

Thanks,
~Randy

#1 lore raw
Quoted 7 lines · On Wed, 10 Sep 2008 12:24:05 -0700 "Randy Dunlap" <[email protected]>…

Hi,

I was looking at the arch/powerpc/boot/.gitignore file. Why are all of those non-local-directory files listed there? E.g., empty.c, inf*.c, inf*.h, zconf.h, zlib.h, zutil.h, etc.

And what is "dtc"? I see a dtc-src directory, but "dtc" is MIA.

./arch/powerpc/boot/dtc

I believe if the dts is built into u-boot, the dtc is not built.

Quoted 1 line

Same for kernel-vmlinux.strip.*

I don't see a vmlinux.strip.* rule. I ignore vmlinux.strip.

Cheers,
Sean

#2 lore raw

Dear Sean MacLennan,

Quoted 2 lines · In message <[email protected]> you wrote:

I believe if the dts is built into u-boot, the dtc is not built.

This is never the case. The device tree is considered to be part of and provided to the boot loader by the kernel.

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: [email protected]
Mr. Cole's Axiom:
        The sum of the intelligence on the planet is a constant;
        the population is growing.
#3 lore raw
Quoted 7 lines · Wolfgang Denk

Dear Sean MacLennan,

Quoted 1 line · In message <[email protected]> you wrote:

I believe if the dts is built into u-boot, the dtc is not built.

This is never the case. The device tree is considered to be part of and provided to the boot loader by the kernel.

No, it's provided to the kernel by the firmware. That the repository for the files that the user provides to u-boot for this purpose happens to live in the Linux source tree is irrelevant.

-Scott

#4 lore raw
In reply to Sean MacLennan
Quoted 8 lines · Sean MacLennan
Quoted 5 lines · On Wed, 10 Sep 2008 12:24:05 -0700 "Randy Dunlap" <[email protected]>…

Hi,

I was looking at the arch/powerpc/boot/.gitignore file. Why are all of those non-local-directory files listed there? E.g., empty.c, inf*.c, inf*.h, zconf.h, zlib.h, zutil.h, etc.

Why would these files be listed in arch/powerpc/boot/.gitignore ??

Quoted 3 lines
Quoted 1 line

And what is "dtc"? I see a dtc-src directory, but "dtc" is MIA.

./arch/powerpc/boot/dtc

Where do you see that? That's not in 2.6.27-rc6 nor in the current powerpc.git tree. They both have:

Quoted 1 line

pwd

/var/linsrc/lin2627-rc6/arch/powerpc/boot

Quoted 1 line

ls -ld dt*

drwxr-xr-x 2 rdunlap users 4096 Jul 13 14:51 dtc-src/ drwxr-xr-x 2 rdunlap users 4096 Sep 9 19:33 dts/

which leads me to believe that the .gitignore entry should be either dts or dtc-src or both, but not "dtc".

Quoted 5 lines

I believe if the dts is built into u-boot, the dtc is not built.

Quoted 1 line

Same for kernel-vmlinux.strip.*

I don't see a vmlinux.strip.* rule. I ignore vmlinux.strip.

again, where are you looking?
This is in the current arch/powerpc/boot/.gitignore file.

~Randy

#5 lore raw
Quoted 5 lines · Randy Dunlap
Quoted 3 lines
Quoted 3 lines

I was looking at the arch/powerpc/boot/.gitignore file. Why are all of those non-local-directory files listed there? E.g., empty.c, inf*.c, inf*.h, zconf.h, zlib.h, zutil.h, etc.

Why would these files be listed in arch/powerpc/boot/.gitignore ??

Because they're created when building a bootwrapper?

Quoted 5 lines
Quoted 2 lines
Quoted 1 line

And what is "dtc"? I see a dtc-src directory, but "dtc" is MIA.

./arch/powerpc/boot/dtc

Where do you see that? That's not in 2.6.27-rc6 nor in the current powerpc.git tree. They both have:

Of course not -- it wouldn't be in gitignore if it weren't a generated file.

Quoted 9 lines
Quoted 1 line

pwd

/var/linsrc/lin2627-rc6/arch/powerpc/boot

Quoted 1 line

ls -ld dt*

drwxr-xr-x 2 rdunlap users 4096 Jul 13 14:51 dtc-src/ drwxr-xr-x 2 rdunlap users 4096 Sep 9 19:33 dts/

which leads me to believe that the .gitignore entry should be either dts or dtc-src or both, but not "dtc".

Why would we want to ignore source directories? dtc is the binary that is built from dtc-src.

-Scott

#6 lore raw
Quoted 25 lines · Scott Wood
Quoted 5 lines · Randy Dunlap
Quoted 3 lines
Quoted 3 lines

I was looking at the arch/powerpc/boot/.gitignore file. Why are all of those non-local-directory files listed there? E.g., empty.c, inf*.c, inf*.h, zconf.h, zlib.h, zutil.h, etc.

Why would these files be listed in arch/powerpc/boot/.gitignore ??

Because they're created when building a bootwrapper?

Quoted 5 lines
Quoted 2 lines
Quoted 1 line

And what is "dtc"? I see a dtc-src directory, but "dtc" is MIA.

./arch/powerpc/boot/dtc

Where do you see that? That's not in 2.6.27-rc6 nor in the current powerpc.git tree. They both have:

Of course not -- it wouldn't be in gitignore if it weren't a generated file.

Quoted 7 lines
Quoted 1 line

pwd

/var/linsrc/lin2627-rc6/arch/powerpc/boot

Quoted 1 line

ls -ld dt*

drwxr-xr-x 2 rdunlap users 4096 Jul 13 14:51 dtc-src/ drwxr-xr-x 2 rdunlap users 4096 Sep 9 19:33 dts/

Quoted 5 lines
Quoted 2 lines

which leads me to believe that the .gitignore entry should be either dts or dtc-src or both, but not "dtc".

Why would we want to ignore source directories? dtc is the binary that is built from dtc-src.

Thanks. Got it.

~Randy