[Buildroot] [PATCH] Makefile: move fs/common.mk above external.mk
Thomas De Schampheleire
patrickdepinguin at gmail.com
Mon May 5 07:47:14 UTC 2014
Hi Peter,
On Thu, Mar 27, 2014 at 10:32 PM, Peter Korsgaard <jacmet at uclibc.org> wrote:
>>>>>> "Philippe" == Philippe Reynes <tremyfr at yahoo.fr> writes:
>
> > Hi Peter,
> > I've done a little test before sending this patch.
> > I've used this useless fs :
>
> > define ROOTFS_USERFS_CMD
> > echo "Nothing to do" ; \
> > touch $@
> > endef
>
> > $(eval $(call ROOTFS_TARGET,userfs))
>
> > In the file $(BR2_EXTERNAL)/fs/common.mk
>
> > Without my patch, the file rootfs.userfs is not created.
> > With my patch, the file rootfs.userfs is created.
>
> > I could have missed something.
> > Do you have an idea of what may failed ?
>
> The specific issue I mentioned was about the externally defined rootfs
> getting created before target-purgelocales / target-generatelocales gets
> called. The easiest way to check that is to use a glibc toolchain and
> enable BR2_ENABLE_LOCALE_PURGE / BR2_GENERATE_LOCALE, and then stick an
> echo statement in each of them.
>
I performed this test, and can confirm that all is well:
purging/generating of locale data is done before the filesystem is
created, in the order generate / purge / rootfs.
So moving that line does not impact the behavior with respect to locales.
As the patch does no longer cleanly apply, I'll send a new version.
Do you still consider this for 2014.05 or is it too late/risky in your opinion?
Thanks,
Thomas
More information about the buildroot
mailing list