On Tue, Aug 25, 2020 at 09:51:17AM -0400, Prarit Bhargava wrote:
> On 8/24/20 11:52 AM, Don Zickus wrote:
> > make mrproper
> > mkdir output
> > make O=output dist-configs
> 
> Here's a simpler case:
> 
> make dist-config *works*.
> 
> However, make dist-configs-arch fails with

Apply my patch and see if that resolves it. 
> 
> make[2]: *** redhat: No such file or directory.  Stop.

I suspect adding '$(srctree/redhat' to Makefile.dist will address the above
problem.

Cheers,
Don

> make[1]: *** [/home/prarit/git-kernel/kernel-ark/Makefile.dist:59:
> dist-configs-arch] Error 2
> make: *** [Makefile.dist:59: dist-configs-arch] Error 2
> 
> What is interesting is if I do directly call the Makefile code for the
> dist-configs target, then 'make dist-configs-arch' magically *works*.
> 
> diff --git a/redhat/Makefile b/redhat/Makefile
> index 8c6a3a510768..2d1626920d08 100644
> --- a/redhat/Makefile
> +++ b/redhat/Makefile
> @@ -154,7 +154,9 @@ dist-configs-prep: dist-clean-configs
>         cd $(REDHAT)/configs; TARGET=$(DIST_TARGET) ./build_configs.sh
> $(PACKAGE_NAME) $(ARCH_MACH)
> 
>  dist-configs-arch: ARCH_MACH = $(MACH)
> -dist-configs-arch: dist-configs
> +dist-configs-arch: dist-configs-prep
> +       @cd $(REDHAT)/configs; VERSION=$(KVERSION) ./generate_all_configs.sh
> rhel 1; \
> +       ./process_configs.sh $(PROCESS_CONFIGS_OPTS) $(PACKAGE_NAME) 
> $(KVERSION)
> 
>  dist-clean-configs:
>         cd $(REDHAT)/configs; rm -f kernel-*.config \
> 
> I suspect there is some subtlety around setting variables or something that is
> causing this problem.
> 
> P.
> _______________________________________________
> kernel mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/[email protected]
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to