lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 15 Sep 2020 16:54:19 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Frank Wunderlich <frank-w@...lic-files.de>
Cc:     Michal Marek <michal.lkml@...kovi.net>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [question] KBUILD_OUTPUT and modules install (with INSTALL_MOD_PATH)

On Tue, Sep 15, 2020 at 2:42 PM Frank Wunderlich
<frank-w@...lic-files.de> wrote:
>
> Am 15. September 2020 04:56:55 MESZ schrieb Masahiro Yamada <masahiroy@...nel.org>:
> >On Tue, Sep 15, 2020 at 2:57 AM Frank Wunderlich
>
> >> i try to use modules_install target after building kernel with
> >KBUILD_OUTPUT set
> >>
> >> KBUILD_OUTPUT: /media/data_nvme/git/kernel/build #kernel source is in
> >/media/data_nvme/git/kernel/BPI-R2-4.14
> >>
> >> kernel is build successfully, but i fail on running the make
> >modules_install target
> >>
> >>   ERROR: Kernel configuration is invalid.
> >>          include/generated/autoconf.h or include/config/auto.conf are
> >missing.
> >>          Run 'make oldconfig && make prepare' on kernel src to fix
> >it.
> >>
> >> Makefile:648: include/config/auto.conf: No such file or directory
> >> make: *** [Makefile:719: include/config/auto.conf] Error 1
> >>
> >> it looks it is ignoring the KBUILD_OUTPUT variable, as both files are
> >present
> >
> >
> >KBUILD_OUTPUT is an environment variable.
> >
> >Did you set (export) it
> >before doing 'make modules_install'?
>
> Yes i exported it before use at beginning of my script [1] and modules_install used inside install function [2]. It works with build-function [3].
> As the script is big i linked the relevant parts...i checked KBUILD_OUTPUT at beginning of install function so i'm sure it was set
>
> >> $ ls /media/data_nvme/git/kernel/build/include/config/auto.conf
> >> /media/data_nvme/git/kernel/build/include/config/auto.conf
> >> $ ls /media/data_nvme/git/kernel/build/include/generated/autoconf.h
> >> /media/data_nvme/git/kernel/build/include/generated/autoconf.h
>
>
> [1] https://github.com/frank-w/BPI-R2-4.14/blob/5.9-rc/build.sh#L75
> [2] https://github.com/frank-w/BPI-R2-4.14/blob/5.9-rc/build.sh#L368
> [3] https://github.com/frank-w/BPI-R2-4.14/blob/5.9-rc/build.sh#L578
> regards Frank


[3] is unrelated since
"#&& make modules_install 2>&3" is commented out.


In [1], you export KBUILD_OUTPUT as a normal user,
then in [2], you run the commands with 'sudo'.

That is why KBUILD_OUTPUT was not passed.


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ