Skip to contentSkip to conversation

[Fwd: Re: make install on ppc]

Fwd: Re: make install on ppc Hans Fugal 7 participants 12 messages Mar 21, 2006 – Mar 28, 2006

lore
Share & tools
lore

Hans Fugal

author
#0 lore raw

Is there something that stops us from having a make install target for ppc?

Quoted 5 lines · Hans Fugal

I apologize if you are not the right people to send this to. On i386 there is a make install target, but on ppc there is not. The distribution is Debian in both cases, and the sources are plain vanilla.

Is this an oversight?

This is up to the arch maintainers to add as required. Please ask the at relevant ppc mailing list.

Sam

#1 lore raw

Re: make install on ppc

Quoted 1 line · Hans Fugal

Is there something that stops us from having a make install target for ppc?

Why do you want it, and what would it do? Clearly not many people have needed it so far...

-Hollis

#2 lore raw

Re: make install on ppc

Am Sunday 26 March 2006 21:26 schrieb Hollis Blanchard:

Quoted 6 lines · Hans Fugal
Quoted 2 lines

Is there something that stops us from having a make install target for ppc?

Why do you want it, and what would it do? Clearly not many people have needed it so far...

I've missed it a few times, typing 'make install' by habit, but thought it was a bug in my own setup, so I didn't bother looking what was missing.

	Arnd <><
author
#3 lore raw

Re: make install on ppc

In reply to Hollis Blanchard
Quoted 5 lines · Hollis Blanchard
Quoted 1 line · Hans Fugal

Is there something that stops us from having a make install target for ppc?

Why do you want it, and what would it do? Clearly not many people have needed it so far...

I bet a lot of people have typed it, wished it was there, then worked around it. That's what I've been doing for a year now.

It doesn't do much - basically it has the proper dependencies and runs installkernel with the appropriate arguments (as indicated by make help).

Thanks

#4 lore raw

Re: make install on ppc

I also think the 'make install' is very useful, now on ia32, the 'make install' provided by the latest kernel linux-2.6.16 not only create initrd, copy vmlinuz and System.map to /boot directory, but also update grub, ppc32 does not provide this useful feature, maybe it is a pity!

--
Regards,

MCP Test, Linux Technology Center, China Systems & Technology Lab
China Development Labs, Beijing Email: [email protected]

Hans Fugal <[email protected]>
Sent by: [email protected] 2006-03-27 05:44

To
Hollis Blanchard <[email protected]>
cc
linuxppc-dev list <[email protected]>
Subject
Re: make install on ppc

Quoted 7 lines · Hollis Blanchard
Quoted 2 lines · Hans Fugal

Is there something that stops us from having a make install target for ppc?

Why do you want it, and what would it do? Clearly not many people have needed it so far...

I bet a lot of people have typed it, wished it was there, then worked around it. That's what I've been doing for a year now.

It doesn't do much - basically it has the proper dependencies and runs installkernel with the appropriate arguments (as indicated by make help).

Thanks
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

#5 lore raw

Re: make install on ppc

Quoted 5 lines · Jin Qi Huang

I also think the 'make install' is very useful, now on ia32, the 'make install' provided by the latest kernel linux-2.6.16 not only create initrd, copy vmlinuz and System.map to /boot directory, but also update grub, ppc32 does not provide this useful feature, maybe it is a pity!

Maybe narrow it to define 'make install' for new world/old world Macintoshes, or IBM machines? I can't see a generic make install being useful for the wider range of platforms that fall under ppc.

'make install' appears to me to be very platform dependent. Sure, on x86, you can reasonably assume that the majority of systems have the kernel on a disk under /boot and the bootloader is grub or lilo. I have 5 ppc machines currently, and no two use the same bootloader or kernel image. I've seen u-boot, yaboot, quik, powerboot (Motorola/Force), xmon (XES) and more, and they all required different post-processing to the kernel image to boot. For most of these, there is no way to programmatically guess where a particular kernel image should go to work with the boot loader.

- Brent

#6 lore raw

Re: make install on ppc

Quoted 5 lines · Brent Cook
Quoted 4 lines · Jin Qi Huang

I also think the 'make install' is very useful, now on ia32, the 'make install' provided by the latest kernel linux-2.6.16 not only create initrd, copy vmlinuz and System.map to /boot directory, but also update grub, ppc32 does not provide this useful feature, maybe it is a pity!

The feature sounds like a good idea to me, even if it's just the copying files part. Do any PPC distros provide a working installkernel script?

Quoted 4 lines

Maybe narrow it to define 'make install' for new world/old world Macintoshes, or IBM machines? I can't see a generic make install being useful for the wider range of platforms that fall under ppc.

Quoted 8 lines

'make install' appears to me to be very platform dependent. Sure, on x86, you can reasonably assume that the majority of systems have the kernel on a disk under /boot and the bootloader is grub or lilo. I have 5 ppc machines currently, and no two use the same bootloader or kernel image. I've seen u-boot, yaboot, quik, powerboot (Motorola/Force), xmon (XES) and more, and they all required different post-processing to the kernel image to boot. For most of these, there is no way to programmatically guess where a particular kernel image should go to work with the boot loader.

If you have an unusual platform, don't run make install and you have lost nothing... :)

-Hollis

#7 lore raw

Re: make install on ppc

Now on ia32, there are also a lot of bootloaders, currently 'make install' can update lilo and grub, on ppc desktop and enterprise computing, we mainly use yaboot as the bootloader, I think ppc 'make install' can at least support yaboot.

--
Regards,

MCP Test, Linux Technology Center, China Systems & Technology Lab
China Development Labs, Beijing Email: [email protected]

Hollis Blanchard <[email protected]>
Sent by: [email protected] 2006-03-28 11:43

To
linuxppc-dev list <[email protected]>
cc

Subject
Re: make install on ppc

Quoted 6 lines · Brent Cook
Quoted 5 lines · Jin Qi Huang

I also think the 'make install' is very useful, now on ia32, the 'make install' provided by the latest kernel linux-2.6.16 not only create initrd, copy vmlinuz and System.map to /boot directory, but also update
grub, ppc32 does not provide this useful feature, maybe it is a pity!

The feature sounds like a good idea to me, even if it's just the copying files part. Do any PPC distros provide a working installkernel script?

Quoted 6 lines

Maybe narrow it to define 'make install' for new world/old world Macintoshes,
or IBM machines? I can't see a generic make install being useful for the
wider range of platforms that fall under ppc.

Quoted 14 lines

'make install' appears to me to be very platform dependent. Sure, on x86, you
can reasonably assume that the majority of systems have the kernel on a disk
under /boot and the bootloader is grub or lilo. I have 5 ppc machines currently, and no two use the same bootloader or kernel image. I've seen
u-boot, yaboot, quik, powerboot (Motorola/Force), xmon (XES) and more, and
they all required different post-processing to the kernel image to boot. For
most of these, there is no way to programmatically guess where a particular
kernel image should go to work with the boot loader.

If you have an unusual platform, don't run make install and you have lost nothing... :)

-Hollis

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

#8 lore raw

Re: make install on ppc

In reply to Hollis Blanchard
Quoted 5 lines · Hollis Blanchard
Quoted 2 lines · Brent Cook
Quoted 1 line · Jin Qi Huang

I also think the 'make install' is very useful, now on ia32, the

'make

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

install' provided by the latest kernel linux-2.6.16 not only create initrd, copy vmlinuz and System.map to /boot directory, but also update
grub, ppc32 does not provide this useful feature, maybe it is a pity!

The feature sounds like a good idea to me, even if it's just the copying files part. Do any PPC distros provide a working installkernel script?

Problem is for multi-platform binary builds, 'install' could mean different things for the different platforms, so to support install, there needs to be some way to tell the build system what 'install' means that also works with the muti-platform makefile logic. The current powerpc makefiles don't have this, and it would take some non-trivial rework to add it.

There is also the question of what install means when cross building.

I run make from a script that I tell the platform. The script does what's needed for that platform to get it built and installed.

-Geoff

#9 lore raw

Re: make install on ppc

Quoted 1 line · you

Problem is for multi-platform binary builds, 'install' could mean differe=

nt

Quoted 3 lines

things for the different platforms, so to support install, there needs to be some way to tell the build system what 'install' means that also works with the muti-platform makefile logic. =C2=A0The current powerpc ma=

kefiles

Quoted 1 line

don't have this, and it would take some non-trivial rework to add it.

That is for the distribution- or user-supplied installkernel script to deal= =20
with.

Quoted 1 line

There is also the question of what install means when cross building.

So don't run make install when cross-compiling (unless of course your=20 installkernel script supports that).

I don't understand these objections. If someone's platform is so super-spec= ial=20
that a script couldn't possibly know how to install a kernel, just don't ru= n=20
make install!

=2DHollis

#10 lore raw

Re: make install on ppc

Quoted 9 lines · Hollis Blanchard
Quoted 5 lines · you

Problem is for multi-platform binary builds, 'install' could mean different things for the different platforms, so to support install, there needs to be some way to tell the build system what 'install' means that also works with the muti-platform makefile logic. The current powerpc makefiles don't have this, and it would take some non-trivial rework to add it.

That is for the distribution- or user-supplied installkernel script to deal with.

To handle the situation I mentioned, the build system would need to either tell the installkernel script what to do, or call different installkernel scripts, so the build system itself needs to have some notion of what install means, but as I mentioned, that is currently missing from the makefiles.

Quoted 4 lines
Quoted 1 line

There is also the question of what install means when cross building.

So don't run make install when cross-compiling (unless of course your installkernel script supports that).

But I would like to...

Quoted 3 lines

I don't understand these objections. If someone's platform is so super-special that a script couldn't possibly know how to install a kernel, just don't run make install!

I guess you misunderstood me. I'm not objecting nor saying it shouldn't be done, just stating some of what needs to be done to make it work properly. The logic needed is not trivial, and more work is needed than just adding an 'install' target line to a makefile.

-Geoff

#11 lore raw

Re: make install on ppc

In reply to Hollis Blanchard
Quoted 3 lines · Hollis Blanchard

I don't understand these objections. If someone's platform is so super-special that a script couldn't possibly know how to install a kernel, just don't run make install!

I don't see any problem either. If someone had bothered to produce a patch, it would have been applied by now. :)

Paul.