Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2692605pxk; Mon, 14 Sep 2020 22:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCDQ6sxxTnx0I2duQlRpPf1sWvN8JPjUkCBwObbBRB4OsT85ryaRbQdO1ahBBWs3VvlemK X-Received: by 2002:a05:6402:515:: with SMTP id m21mr20942566edv.348.1600148670725; Mon, 14 Sep 2020 22:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600148670; cv=none; d=google.com; s=arc-20160816; b=A0dBZnKxcQrNr1NcVIuOPW6la0P69Y/V9WHFAb0LnLwpJx2NN61/HU40Nr5ahPtIiK QaAhpegaGv4eAPvB3nAsBccAwjL9JLpcyQ89ORXsKoEljtwfLUKq74J919Qzz7yAdMZp H3iulRkaEXsVWRnm8/C64baOIuzG9EetvtJuLFSumfBL+RGV0PFeCoDldCDA2aAssLwb 3nv0chctI+9j7gT4LT6NbTCmg6hudRmNMDStMc96Cs8B3lDd1CVsb0BNYfNj2D1C4Xbf L3jihJx0SXpHkUryRCfvRPFZb7nlcLzvmYNsPqdz/H0xjWwbVC/mBxA/7XaRlUK1YTwA HXTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=gmMnkI/4TSmTXZrZnIXi8o/cNfCfk4KBBRvHw+rhufk=; b=tAYR5bpHC4KNCP3N+oGsFBnVdVxf53BFRMAgc79bKnZ1Bxmdwkmxz8KvUKJUr1FTFo rHrDiJNc5+J2H6qfk7uCkJU11irX3kcIUhPpK2ryIwzZOxeRn3NJlAsLNf1kgsH77xNP hUkQD0rKcXLYePlpBXzTAUFq3lMQ86pWkBnZMg6kWechuMzLvkUpP8VYfMGFOVUFW7Yh 44RRawXnqDPwreZIIsGERG50dR0vKtEpI9jGi2miF5bsLd25cqdrfKU7MyS6Ok4eWygL 3R1Pl92V3oRAj/LGoIVk2ZxvHER2yLCU5+9JcHY8GLMGxxzgQOmAnnyel+tdRoOWpvi8 bcMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=cC4W0GCc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu19si9126904ejb.305.2020.09.14.22.44.08; Mon, 14 Sep 2020 22:44:30 -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=fail header.i=@gmx.net header.s=badeba3b8450 header.b=cC4W0GCc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726153AbgIOFmt (ORCPT + 99 others); Tue, 15 Sep 2020 01:42:49 -0400 Received: from mout.gmx.net ([212.227.17.22]:44927 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbgIOFmr (ORCPT ); Tue, 15 Sep 2020 01:42:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600148561; bh=r3Zy9HlAL4mX3fNk1dKMHZdu3L7YVwrK+wA+gsCULAU=; h=X-UI-Sender-Class:Date:In-Reply-To:References:Subject:To:CC:From; b=cC4W0GCc3Yb9QMdMJ09cedgWewbzFaSKrnbUvugrL5pmVVwRzDQB/I8d/2J1i7BvL lBv+RJ3zhUahX/IAMukCfA3clntSoDGDSprcglRlvYbtWnow2J4khMTZ0QbFwvkcZa oDdlpDl9kjrgxDAHJkdjvS2esOrxsx5J/7PuoJpA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from frank-s9 ([80.208.209.101]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBDj4-1kD9Op2W7C-00CfLB; Tue, 15 Sep 2020 07:42:41 +0200 Date: Tue, 15 Sep 2020 07:42:38 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [question] KBUILD_OUTPUT and modules install (with INSTALL_MOD_PATH) To: Masahiro Yamada CC: Michal Marek , Linux Kernel Mailing List From: Frank Wunderlich Message-ID: <27B16959-58F6-4190-8A65-88FFD2A49452@public-files.de> X-Provags-ID: V03:K1:9aRRb6YdF+92yGClFII+wr0BXl8PGUkGZCa85D7xavt1AuuOVq8 WJ2D23uxwi8DsgArZJbUEpkeVE3J3eDjNqtGoTuoGgUGpGHIzPWYxSWaM1+Hsq5ouoz17/B LxWTL9FNADRNFfe+reyUYvEtY2kmxXXSQ8XxwIiCCBom0ZYoJclNX3bURZMO7C9hyIwZ50X ZYHELE+xDVS0gUcN8xstQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2dKy2BiNc+Q=:zQG0Ytb/6w/JmgO+XCWLDe dy/k0EqFfPmmnxHv33hN9w6jC7yk+FiNR8/lu1ndS1QXlqgk6RmXTNULjiBARH2NZz18h/REe LiSHhG8dOilmxmOh8Uy0yY1RcKB1HEH34HocbJDfgPheTzQW9XXr5TBbZFUWJsqgkN/s/ligL V2Z1o/vvDJEOoD0dqSkveau6g32MKnb6ySlm/mwsp+FI9KswtFeL7lO7jSr1Qr6psJ9rJTsbt buKuK4juqeDNJlV4IVXdbiYMKbkWtDjHyH4XC92iDfBngtYMIYCPZpC2zKoTsqINIXHyaJr/z SliM0stwBfXOmuqMuZolEFZ6YDDI5oKVdn42OX0jSNVpOwkKuXLdrgA4vO7rpNej5lB0SM1+d PyTMMNoO8rq87Jv520JnLwiuoB+XrM7B65xVKqEe0lwAciRdsVdRxW1Q0lYI50Qbbi3FJ/LeD LorCaukb6JBSVwsVolXl4bfpJzFVsOtBXuc1ac6pYpKXvgFET0S2XbJLo8bgSqihDV99/rjEp HaBN4w8cbp/o04vCVMKX7gG2kWmVEcfLqigbvIR79AvYP/EWswaipKsjf9qqWcLwf7UaezWOF mUkEtFG3/Q/RVdcsQ/mb3o/+uftmcxNWVDF9plIlxxg6RjbDXNMn2qxtvsbvzpNCJnecOj19G cIUc4V2aZwJkiktlUnCiB/+X7tB5h3j8o4F2q0GpS/RRENT6lAoO0Aq3M0zsaH97OiB67+knb MqiLLr+RQzgF3239ARHGYcZk0eXJX6K0fg97/PlqVV3y16ZGhVDgGziVHL+8Own2WWLXOZ0F4 7kdKYBXJZnAJWmPvYCzkrricpbPXKqI+hzQ9hpw1zIkhbIcwa+H0v0BKzRIpaAYd1jOmYNvKr QE5IilNkYXzXRN/UH949qjAGBksKwhSbSd7SwJj3SDlkRa+ls8Ae4Bj/0jIyKnNsUm03GJBzd ZIy7ohGMKeXpAJYgmSvrS5BVjTlvXVrb3jYUFT37h3NhvttvreS71NwRgGuEs2N/qEmLfPWhv 2KP8wdK4PrQlYDAHmrHRVeQ924JgMuKt/z4hy3/X2IVeoAuIwGlFFFAzeuXj8lbeJ4f8Jo5YM ZaDNB4uVkIb1WW8QHyXFOG3WqEWaSPww0drijfQObhjSk633XDPwA4bul3jtuGZMfwv8cOt3+ A8l732lh/ic+XgXwJdeEsY2HB/hwMUEjesewCEC9PdRM+oFeaQonN2Y+h8mMz7OLcQcZFUIrE /YYTGcsG6L7yy2hk1q0ESeZ5nCjMnaQQA0qK6iA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 15=2E September 2020 04:56:55 MESZ schrieb Masahiro Yamada : >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=2E14 >> >> kernel is build successfully, but i fail on running the make >modules_install target >> >> ERROR: Kernel configuration is invalid=2E >> include/generated/autoconf=2Eh or include/config/auto=2Econf a= re >missing=2E >> Run 'make oldconfig && make prepare' on kernel src to fix >it=2E >> >> Makefile:648: include/config/auto=2Econf: No such file or directory >> make: *** [Makefile:719: include/config/auto=2Econf] Error 1 >> >> it looks it is ignoring the KBUILD_OUTPUT variable, as both files are >present > > >KBUILD_OUTPUT is an environment variable=2E > >Did you set (export) it >before doing 'make modules_install'? Yes i exported it before use at beginning of my script [1] and modules_ins= tall used inside install function [2]=2E It works with build-function [3]= =2E As the script is big i linked the relevant parts=2E=2E=2Ei 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=2Econf >> /media/data_nvme/git/kernel/build/include/config/auto=2Econf >> $ ls /media/data_nvme/git/kernel/build/include/generated/autoconf=2Eh >> /media/data_nvme/git/kernel/build/include/generated/autoconf=2Eh [1] https://github=2Ecom/frank-w/BPI-R2-4=2E14/blob/5=2E9-rc/build=2Esh#L7= 5 [2] https://github=2Ecom/frank-w/BPI-R2-4=2E14/blob/5=2E9-rc/build=2Esh#L3= 68 [3] https://github=2Ecom/frank-w/BPI-R2-4=2E14/blob/5=2E9-rc/build=2Esh#L5= 78 regards Frank