Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2623253pxk; Mon, 14 Sep 2020 19:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhOsFS6NAaDa+6LYkMSvX2dZ7sF28/5wKKZ6RnIoENJotG+9sbTO0xcsnFio8pZFRiQoOi X-Received: by 2002:aa7:c154:: with SMTP id r20mr20513207edp.337.1600138728296; Mon, 14 Sep 2020 19:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600138728; cv=none; d=google.com; s=arc-20160816; b=d+zLI2cZ4IjXdlRYp4Bp2dgSeDoAh46EBUraax73gSf8DecCMML1wizKa3HbsKTcei yG2JzyV18ONnkANfQncKFQFHM7D44GXQVcPJJm4x9OPfdx7Yz2yuptpS5QENcboyC+jK 185d0MWXa1ZqA9WYRxQgMuPo0wZCqiZD7YzTK8tscueLT+1a9+L81bqvvcmfT+EQ0pQc aY8fBMYwKd8eTfOnWwb0U4eygRlIB7fHuroCkUUEeEd9LSGBVBXPYzmWcfjQ8fZ3ZLw7 DugzuWavmZ0lMiiOAY8FbBBiBFt4+1hR3UkW/zVH+E1y2Zw2gzSFVeZyYOL4Pi09DtWX NzNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=Xr7JFdXVt/ll5q4+mjcGj6Ps1QBbwreBkSd+NgA5XrA=; b=Sy8V5hpAKW+sfcT1teGeE3oj2xn//HMgyYtoi3D5cU99GWXn5r6cqKU31nzH9zRePd 8vJblSNUUS2CtHQABUnQh6vzSMyXIMMxbUVnAcZre2B/72lPY3xblsNEuFCUcOO9fB2t wUmxiCkaE7NVZSzvFhg7peVl9w3Bpz+JeNdSgpbNlsHz2P/McsWFe/QA1rpAn4vo7SFZ ssveBnpgHEY37cbNUiKYqZqX6+9u9NdwRhduwdaC0zjPdJp7/lCNNDimB3y7q5yFevGq 86fs8v8K12vg2LCq61pC1AtpZ0WW3QqSyhKpUa86SjMbRGlMQy8PagHHu+zuqeqs4kjv ilow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XaSuOwF4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si7884093eja.493.2020.09.14.19.58.25; Mon, 14 Sep 2020 19:58:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XaSuOwF4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726082AbgIOC5s (ORCPT + 99 others); Mon, 14 Sep 2020 22:57:48 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:20677 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbgIOC5r (ORCPT ); Mon, 14 Sep 2020 22:57:47 -0400 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 08F2vWq7020755 for ; Tue, 15 Sep 2020 11:57:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 08F2vWq7020755 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1600138652; bh=Xr7JFdXVt/ll5q4+mjcGj6Ps1QBbwreBkSd+NgA5XrA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XaSuOwF46BEvFEDe0rudvGLTZpKvHIfCYwrM77QrUH49wbW+T2L9D9jpcvlqg8o9d Q43BjY9RScM9U/qf2PQNgg/npJBv/VoyKkllwfLQ7TEh1lEll9Ob8MyE/XueIv9HFo l4HwB2jhht4DbiZVoakP8SS9viI1l6B6f4nwj9d16wcUn85f1E5UK7rKSYqUPf1F2c QL+OoIEbmhbVRH6JfgFIGkzqU8fixg4AVsntRJQwjragiEpPDFyc+9NiGsSPJsKmwn TFHC1RJsmDfhl2cPpD5gd324NQtWOw4Bm9F7h6/y9bkbfwm7/FEqyYpauLzNCDwxXM mY4iYwblETv/g== X-Nifty-SrcIP: [209.85.210.172] Received: by mail-pf1-f172.google.com with SMTP id d9so1108757pfd.3 for ; Mon, 14 Sep 2020 19:57:32 -0700 (PDT) X-Gm-Message-State: AOAM532yoAEQ7m6JHRr8HpJqks3kErlVyfgri0fkkMswikGx4CTFYxi3 5JXDCdd7rWuYlrNpVn2XOpmLsmTgq0XxAVHhG5A= X-Received: by 2002:a62:5b47:: with SMTP id p68mr16069667pfb.153.1600138651681; Mon, 14 Sep 2020 19:57:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Tue, 15 Sep 2020 11:56:55 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [question] KBUILD_OUTPUT and modules install (with INSTALL_MOD_PATH) To: Frank Wunderlich Cc: Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 2:57 AM Frank Wunderlich wrote: > > Hi, > > 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'? > $ 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 > > i also tried adding KERNEL_DIR var, but also without success > > sudo make ARCH=$ARCH KERNEL_DIR=$KBUILD_OUTPUT INSTALL_MOD_PATH=/media/$USER/BPI-ROOT/ modules_install This is no variable like KERNEL_DIR. "git grep KERNEL_DIR" obviously has no hit in the kernel directory. > $KBUILD_OUTPUT is definitely set to right directory (checked on beginning of my function) > > this message seems to be triggered by Makefile in root (here i tried to add the KBUILD_OUTPUT in the test before include without success) > > 718 include/config/auto.conf: > 719 $(Q)test -e include/generated/autoconf.h -a -e $@ || ( \ > 720 echo >&2; \ > 721 echo >&2 " ERROR: Kernel configuration is invalid."; \ > 722 echo >&2 " include/generated/autoconf.h or $@ are missing.";\ > > any idea? > > regards Frank > -- Best Regards Masahiro Yamada