From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2263140382646373432==" MIME-Version: 1.0 From: Ricardo Neri Subject: [PATCH 8/9] chipsec: do not ship manual Date: Fri, 10 Mar 2017 15:36:20 -0800 Message-ID: <1489188981-23886-9-git-send-email-ricardo.neri-calderon@linux.intel.com> In-Reply-To: <1489188981-23886-1-git-send-email-ricardo.neri-calderon@linux.intel.com> List-Id: To: chipsec@lists.01.org --===============2263140382646373432== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The usage model of LUV is intended to be automated. Then, CHIPSEC runs in an automated manner. Thus, there is no need to ship the CHIPSEC manual in our ramdisk. Furthermore, we don't ship a PDF reader. Hence, it is unlikely that someone would try to retrieve the manual from our ramdisk when easier alternatives exists (e.g., the CHIPSEC repository). Removing the manual helps us to save several Kbytes of valuable ramdisk space. Signed-off-by: Ricardo Neri --- .../chipsec/0001-chipsec-do-not-ship-manual.patch | 38 ++++++++++++++++++= ++++ meta-luv/recipes-core/chipsec/chipsec_git.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-luv/recipes-core/chipsec/chipsec/0001-chipsec-do-n= ot-ship-manual.patch diff --git a/meta-luv/recipes-core/chipsec/chipsec/0001-chipsec-do-not-ship= -manual.patch b/meta-luv/recipes-core/chipsec/chipsec/0001-chipsec-do-not-s= hip-manual.patch new file mode 100644 index 0000000..09fa941 --- /dev/null +++ b/meta-luv/recipes-core/chipsec/chipsec/0001-chipsec-do-not-ship-manual= .patch @@ -0,0 +1,38 @@ +From eb378df238531c1d10543e2fb643cccb74a8f421 Mon Sep 17 00:00:00 2001 +From: Ricardo Neri +Date: Fri, 10 Mar 2017 12:30:20 -0800 +Subject: [PATCH] chipsec: do not ship manual + +Given that LUV is an automated tool we don't ship a PDF reader, +it does not make sense to include the chipsec manual. We can save +a few Kbytes of valuable ramdisk space. + +Signed-off-by: Ricardo Neri +--- + setup.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 89bcc91..fb0da43 100644 +--- a/setup.py ++++ b/setup.py +@@ -141,7 +141,7 @@ package_data =3D { + "chipsec": ["VERSION", "WARNING.txt"], + "chipsec.cfg": ["*.xml", "*.xsd"], + } +-data_files =3D [("", ["chipsec-manual.pdf"])] ++data_files =3D [] + install_requires =3D [] + extra_kw =3D {} + = +@@ -155,7 +155,6 @@ if platform.system().lower() =3D=3D "windows": + elif platform.system().lower() =3D=3D "linux": + compression_source_files =3D [] + package_data["chipsec_tools.linux"] =3D ['*'] +- data_files =3D [(os.path.join("share","doc","chipsec"), ["chipsec-man= ual.pdf"])] + for root, dir, path in os.walk( os.path.join( "chipsec_tools", "compr= ession" ) ): + for f in path: + if os.path.splitext(f)[1][1:] =3D=3D 'h': +-- = +2.9.3 + diff --git a/meta-luv/recipes-core/chipsec/chipsec_git.bb b/meta-luv/recipe= s-core/chipsec/chipsec_git.bb index 5755e4e..d6c1bef 100644 --- a/meta-luv/recipes-core/chipsec/chipsec_git.bb +++ b/meta-luv/recipes-core/chipsec/chipsec_git.bb @@ -10,6 +10,7 @@ SRC_URI =3D "git://github.com/chipsec/chipsec.git \ file://0001-drivers-linux-Do-not-host-system-s-kernel-source-dir.patch= \ file://chipsec file://luv-parser-chipsec \ file://0001-chipsec-building-for-32-bit-systems.patch \ + file://0001-chipsec-do-not-ship-manual.patch \ " = SRCREV=3D"2fbb7a4eeb3752998dfbcbdf771cd3f8ed1985ae" -- = 2.7.4 --===============2263140382646373432==--