Properly setting up hotplug
So I know I've gotten a Buildroot install that did this automatically once, but through various incremental steps I've gotten a kernel that has the hotplug stuff enabled, and if I
echo /bin/mdev > /proc/sys/kernel/hotplug
or just run "mdev -s" manually I get my hot-plugged devices created, but I'm sure that at some point I had a system where buildroot had created the appropriate init script for me.
Am I hallucinating, or to get this as part of the compile do I need to copy my configs across to a fresh buildroot and make again?
And what's the "make" argument for Buildroot that should clean everything, but not destroy my configs? "make clean" destroys configs, or at least did last time I typed it...
Dan
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Dan" == Dan Lyke <[email protected]> writes:
Dan> So I know I've gotten a Buildroot install that did this automatically Dan> once, but through various incremental steps I've gotten a kernel that Dan> has the hotplug stuff enabled, and if I
Dan> echo /bin/mdev > /proc/sys/kernel/hotplug
Dan> or just run "mdev -s" manually I get my hot-plugged devices created, but Dan> I'm sure that at some point I had a system where buildroot had created Dan> the appropriate init script for me.
Dan> Am I hallucinating, or to get this as part of the compile do I need to Dan> copy my configs across to a fresh buildroot and make again?
The target_busybox does this ("use minimal target skeleton" under the busybox config).
Dan> And what's the "make" argument for Buildroot that should clean Dan> everything, but not destroy my configs? "make clean" destroys configs, Dan> or at least did last time I typed it...
make distclean.
Signature · 1 line
Bye, Peter Korsgaard
Le Wed, 15 Apr 2009 20:01:47 +0200,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 5 lines
Dan> And what's the "make" argument for Buildroot that should clean Dan> everything, but not destroy my configs? "make clean" destroys Dan> configs, or at least did last time I typed it...
make distclean.
Which is quite confusing since :
$ make help | grep distclean distclean - delete all non-source files (including .config)
:-)
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 1 line
Quoted 1 line
make distclean.
Thomas> Which is quite confusing since :
Thomas> $ make help | grep distclean
Thomas> distclean - delete all non-source files (including .config)
Thomas> :-)
I agree. The clean targets are quite a mess (especially when considering the project stuff).
I think we should probably just have clean and distclean (and the individual <target>-clean / -dirclean stuff), where distclean is clean + rm .config
Signature · 1 line
Bye, Peter Korsgaard
Quoted 11 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 1 line
Quoted 1 line
make distclean.
Thomas> Which is quite confusing since :
Thomas> $ make help | grep distclean
Thomas> distclean - delete all non-source files (including .config)
Quoted 8 lines
Thomas> :-)
I agree. The clean targets are quite a mess (especially when considering the project stuff).
I think we should probably just have clean and distclean (and the individual <target>-clean / -dirclean stuff), where distclean is clean + rm .config
Are the individual package -clean targets of any value? I never use them, you are just rebuilding from the same source so what's changed?
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Hamish> Are the individual package -clean targets of any value? I never use Hamish> them, you are just rebuilding from the same source so what's changed?
I do use them while developing - E.G. tweak something in the config and do make <target>-{,dir}clean; make to test.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 2 lines · On Fri, 17 Apr 2009 10:42:09 +1000 Hamish Moffatt <[email protected]> wrote:
Are the individual package -clean targets of any value? I never use them, you are just rebuilding from the same source so what's changed?
Although makefiles *should* pick all the dependencies, it's my experience that they don't. Especially when it comes to changing config options or random stuff down in the board configs.
The command line
pushd project_build_arm/at91sam9261ek/linux-2.6.28/ ; make clean ; popd
is an alias on my system...
Dan