If the ptxdist project is build from a Source Control Management tool that makes files read-only, then ptxdist fails when it wants to overwrite the kernel-config after the kernel-old-config step.
It is not a real error, the oldconfig has succeed, so just print a warning about the read-only file instead of fail completely. Signed-off-by: Remy Bohmer <[email protected]> --- rules/kernel.make | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/rules/kernel.make b/rules/kernel.make index 062e182..a5e61de 100644 --- a/rules/kernel.make +++ b/rules/kernel.make @@ -146,7 +146,11 @@ ifdef PTXCONF_KLIBC endif @$(call ptx/oldconfig, KERNEL) - @cp $(KERNEL_DIR)/.config $(KERNEL_CONFIG) + @if [ -w $(KERNEL_CONFIG) ]; then \ + cp $(KERNEL_DIR)/.config $(KERNEL_CONFIG); \ + else \ + echo "WARNING: $(KERNEL_CONFIG) is Read-only, not updating it!" 1>&2; \ + fi @$(call touch) -- 1.5.6.3 -- ptxdist mailing list [email protected]
