[Buildroot] [PATCH v2] linux: add conditional patch for timeconst.pl

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 7 14:50:38 UTC 2016


Hello,

On Sun,  7 Feb 2016 10:41:48 -0300, gustavo.zacarias at free-electrons.com
wrote:

> +# Older linux kernels use deprecated perl constructs in timeconst.pl
> +# that were removed for perl 5.22+ so it breaks on newer distributions
> +# Try a dry-run patch to see if this applies, if it does go ahead
> +define LINUX_TRY_PATCH_TIMECONST
> +	@if patch -p1 --dry-run -f -s -d $(@D) <$(LINUX_PKGDIR)/0001-timeconst.pl-Eliminate-Perl-warning.patch.conditional >/dev/null ; then \
> +		$(APPLY_PATCHES) $(@D) $(LINUX_PKGDIR) 0001-timeconst.pl-Eliminate-Perl-warning.patch.conditional ; \
> +	fi
> +endef
> +LINUX_POST_PATCH_HOOKS += LINUX_TRY_PATCH_TIMECONST

I really don't like this hack, but I am not sure to see a better
solution. So I'll leave a few days before applying to see if other
people chime in with other comments/suggestions, and if nobody
comments, I'll apply.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list