[Buildroot] [PATCH v2 1/1] Makefile: add target to clean targetfs

Angelo Compagnucci angelo.compagnucci at gmail.com
Wed Mar 11 08:22:49 UTC 2015


Hi Baruch,

I submitted a couple of patches some times ago, but they was rejected
because potentially dangerous for users[1][2].
So probably you will not have that much luck with this patch.

Sincerely, Angelo.

[1] http://lists.busybox.net/pipermail/buildroot/2014-July/101963.html
[2] http://lists.busybox.net/pipermail/buildroot/2014-July/103143.html

2015-03-11 6:06 GMT+01:00 Baruch Siach <baruch at tkos.co.il>:
> Hi Ryan,
>
> On Tue, Mar 10, 2015 at 06:41:39PM -0500, Ryan Barnett wrote:
>> > +1. You enabled +PACKAGE_OPENSSH+ to have a SSH server running on your
>> > +   board. But you figure out that +sshd+ does not run well on your
>> > +   target's architecture. Thus you decide to disable +PACKAGE_OPENSSH+
>> > +   and enable +PACKAGE_DROPBEAR+ instead. You run +make+, +openssh+
>> > +   gets built and installed. Problem: +openssh+ files are still present
>> > +   in +output/target+!
>>
>> One case that comes to mind here is that will this ensure that
>> packages are installed in the correct order with dependencies? I am
>> not exactly sure how the dependencies for packages works, but if you
>> remove all the '.stamp_target_install' will that ensure that all the
>> packages get installed in the correct order?
>>
>> Busybox is the package that comes to my mind first that we need to
>> ensure the installation order. From testing your scenario outlined
>> above it appears that busybox gets installed before even dropbear
>> would get built which would ensure that any full version of busybox
>> would get install correctly over the symlinks to busybox.
>
> The package dependencies system should ensure the right installation order.
> The following excerpts from package/pkg-generic.mk demonstrate that:
>
> $(2)_TARGET_INSTALL_TARGET =    $$($(2)_DIR)/.stamp_target_installed
>
> ...
>
> $(1):                   $(1)-install
>
> ...
>
> $(1)-install:           $(1)-install-staging $(1)-install-target $(1)-install-images
>
> ...
>
> $(1)-install-target:            $$($(2)_TARGET_INSTALL_TARGET)
>
> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo



More information about the buildroot mailing list