From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6751292434813026304 X-Received: by 2002:a25:7389:: with SMTP id o131mr9456720ybc.163.1571907926982; Thu, 24 Oct 2019 02:05:26 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a25:e090:: with SMTP id x138ls832592ybg.4.gmail; Thu, 24 Oct 2019 02:05:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpueBNklhzsU6yEkeDfpC24RFd6wWT8O20MAUfMQyBgyjUSAJod2r0N0RqC20Zl8wXHD+Q X-Received: by 2002:a25:c008:: with SMTP id c8mr498326ybf.318.1571907926501; Thu, 24 Oct 2019 02:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571907926; cv=none; d=google.com; s=arc-20160816; b=k1dRwxyxk9XYX0FT8Ojm/XC7haIxbCp4gaikwIHmjQ4uR/0N2Mg93StX+cHX7dl+oF eDsAfbmxas0u07tq/JpECvBR4frW6f6sBfCyERbfnALUt6QfMUWrTsdHpfecjASbNM4i 2NklcSYvigklNifWfYJ9S6u7GPWgXhzzn8MTrwIinN7hdW/h6oHFFP2Uhey3TXlsWhxJ NP0wWp3eJfwr8UKbTlNrrFfWRhEcpkDe+vEBMlcTJjwF1+m5vuF0g8IBaeuywFHk7fAC /fE4J+XLbn0sVlKZNaMjraF8/Bm9Gblc74wGGwfC9J+H0z16SLCKDAqLIYEC8tfx76GP sINA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=JgVg8IPxDo/Cgo1phRm+TfUxLSRwdVZmM4SDyI5SZjc=; b=WnXdZ03U17Rk66OD0hjamH6PZnh5oAfgGors/130BRJBYqNmu8RVE8H/yJml5agzQ1 PGTI2gS5WOlso3rgqyuyiI3HbymDe3UO29i5VCpLioHCpXsGLjBL2D6CVSNfCp1zVeHO RrZSBRaQKFrR7W0aFwy2BaqhqBjULw0C+5ZSnSy7/KwzkMkTA7W4kOUwq4TTEMZLM4Fa z+FX5uA4bqIzDPKuNY1Zxhw29Uy0LmWD6w2I07K/W/YWxcncJM9ASzpFOaYYGh/h4vnE C0V+z5IxZUpeSSOqK50EjmgmnMMZdIITzfuuKpfAUk5lK7BL0SfvNzjvL5bLJMXBrpSc zpJg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com. [68.232.141.98]) by gmr-mx.google.com with ESMTPS id u8si169280ybc.2.2019.10.24.02.05.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 02:05:26 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) client-ip=68.232.141.98; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: LCbLMsQsrKmQcAa7p9Bm6zTsYrZ4jdKjwewb44DyPJ1LiaKbQVSdyotOGa+OVnlM3KJtclRFX7 Q61ANwL+3GEMwtNsWbuzMunQMxJRAPaTFksSPxZCTwQNGR0wLAoCkmgMeT0F/ZvHai4hT26heI SWrU5lMSqXV9Z6q8VxdFFdmW8klcogDYJZO9SRq6qPCPi1FWscGN6pLNbnd7gzGop48QSfO36N JUHCQdUsc41tM0gmobNZ6zrvMr/054loJFpUlNro77Jvn2R9wfYzADfFpiqermfgL94lfmX2C1 oVU= X-IronPort-AV: E=Sophos;i="5.68,224,1569312000"; d="scan'208";a="42489669" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 24 Oct 2019 01:05:25 -0800 IronPort-SDR: vqZCpQ9M7ruvjUoB41+ogfJTiFibB4GtUu3GFj3QD8Ipkg2/n78ev/TwFphi8zK+VH/wFbhzmg ECf92KNhoPXhMGxGSGPsr1lyH+sOy5ZHIV5bQSIcnT6dLcsimJpdxq99jY4raKwnmxcAeYyYsJ HGlM9ngWJiUXBIv+a08EK1yq/DtZ5DBFY0Qhpl78OsQ1bkbAKMaErOfF3qMmkOgXnRF4inR+bG XIF1qBLtd4abaB4wrCx5CGvYw+b7TOKVJ5rmlqvWTSDJx9u8r3ylsefFshTRqpnepB27lIMqhT Xho= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH 07/10] image: add CUSTOM_IMAGE_EXTENSIONS for user layers/machines to use Date: Thu, 24 Oct 2019 11:02:21 +0200 Message-ID: <1571907744-1121-8-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571907744-1121-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1571907744-1121-1-git-send-email-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: 5OAVXQDxYCpK Some machines may require additional post-processing on the image before the actual file-system image is created. The image extension mechanism was designed for this purpose but does not seem to provide any way for user layers/machines to use. Add a CUSTOM_IMAGE_EXTENSIONS variable to fill this gap. Signed-off-by: Cedric Hombourger --- meta/classes/image.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 7690bc5..633b514 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -30,6 +30,9 @@ BUILDROOT_DEPLOY = "${BUILDCHROOT_DIR}${PP_DEPLOY}" BUILDROOT_ROOTFS = "${BUILDCHROOT_DIR}${PP_ROOTFS}" BUILDROOT_WORK = "${BUILDCHROOT_DIR}${PP_WORK}" +# Default to no custom image extensions +CUSTOM_IMAGE_EXTENSIONS ?= "" + python(){ if (d.getVar('IMAGE_TRANSIENT_PACKAGES')): bb.warn("IMAGE_TRANSIENT_PACKAGES is set and no longer supported") @@ -71,6 +74,7 @@ inherit image-tools-extension inherit image-postproc-extension inherit image-locales-extension inherit image-account-extension +inherit ${CUSTOM_IMAGE_EXTENSIONS} # Extra space for rootfs in MB ROOTFS_EXTRA ?= "64" -- 2.20.1