From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6662351678492114944 X-Received: by 2002:a1c:700d:: with SMTP id l13mr385240wmc.14.1551199629702; Tue, 26 Feb 2019 08:47:09 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:574d:: with SMTP id q13ls1865651wrw.7.gmail; Tue, 26 Feb 2019 08:47:09 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia49t12bHoI8w3VB7N5otJ/H/AtlOhPD2+jLopw4LhkTFXGUc/O0bqnASCtQ0uOnBn/iJdI X-Received: by 2002:adf:9f42:: with SMTP id f2mr1327705wrg.25.1551199629442; Tue, 26 Feb 2019 08:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551199629; cv=none; d=google.com; s=arc-20160816; b=ZneUIzUTZM2+6k3YUZ6BlrKg/jc7PPEUA8wPWZJrEbiY88JsVHpv+nxzbpU7enpWl9 Wt0soICahatiE0xBjMF14+HD5b90ryZOUowcAUqzbBtDXWaarbOG/2R/0XypeaBwz3pL KAFKL0PC/Fwx6qhKqGk33fyfY+Zgrru4ic5/namysWJN/mwG0z2lQPJ1qEVpQgIeYwz0 iz5bD+Qu6nOU5YTbQ00YYPqyrfyvv+Mi8RnbXYZHCGAz7pvFz72sKRLP/fnU7U4RzwNw zgO8YR63mvZsiIy5IK0zyFiU/XCUVAp0Op2KX/VKUygrhZvKBsjSC77m+VQm5IfksXB7 jVRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from; bh=sJOlUl24c6ch+5XKp5MaFEdavDia3hPnB2keEPfZfzQ=; b=ubh9UwzSo7043x9oSDjeQbuKH24xopEUcOZDTLytf9/ltRufLHGUhegGDuenVpYF68 i15RwgUFDDUFtznwP1ArjJZebL6R+aRIKP9OOfBS2Hko26tnH8Dqqq/OPPX8t7N6+MQW spdAzadOcxvQ0z3ql/MduG559s9YE1rHTFUYZxpqYqdl3fha7zJ539kkdSx2I5Z8IJac AAScRW3PhrcnmoZQZGI7gCSsN87IdCLeaCbO8ErKdR+9ApMGsB6zMTceznWu2u67AQS6 Q4LYUbxQ43Mi6ubXSthk9WHjBXXwc0ekPMxgWmRJOkC0KQ/CPBdU/sS/IHMev7JXx9jm A1dg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id c24si2040wml.0.2019.02.26.08.47.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 08:47:09 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gyfsq-0003cw-3o from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Tue, 26 Feb 2019 08:47:08 -0800 Received: from FRG-W10-HOMBOUR.world.mentorg.com (137.202.0.90) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 26 Feb 2019 16:46:58 +0000 From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH] linux-custom: fix for kernels without modules Date: Tue, 26 Feb 2019 17:46:30 +0100 Message-ID: <1551199590-199-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: Buu4KmvR3VAe build-kernel.sh would try to create a .fresh_install file in the /lib/modules/${PV} folder to replicate Debian's postinst magic but would fail when the custom kernel is configured without any modules. Create /lib/modules/${PV} before .fresh_install to make sure its target directory exists. Signed-off-by: Cedric Hombourger --- meta/recipes-kernel/linux/files/build-kernel.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-kernel/linux/files/build-kernel.sh b/meta/recipes-kernel/linux/files/build-kernel.sh index 6e4d347..842b585 100644 --- a/meta/recipes-kernel/linux/files/build-kernel.sh +++ b/meta/recipes-kernel/linux/files/build-kernel.sh @@ -76,6 +76,7 @@ dpkg-gencontrol -crepack/debian/control \ -DArchitecture=$target_arch # Add Debian-like link installation to postinst +mkdir -p ${REPACK_LINUX_IMAGE_DIR}/lib/modules/${PV} touch "${REPACK_LINUX_IMAGE_DIR}/lib/modules/${PV}/.fresh-install" sed -i "${REPACK_LINUX_IMAGE_DIR}/DEBIAN/postinst" \ -e "/^set -e$/a\\ -- 2.11.0