All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: meta-arago@arago-project.org
Subject: [RFC][PATCH 8/9] arago-tiny-image: simplify by re-using arago-image.inc
Date: Wed,  6 Nov 2019 14:02:23 -0500	[thread overview]
Message-ID: <1573066944-48181-9-git-send-email-denys@ti.com> (raw)
In-Reply-To: <1573066944-48181-1-git-send-email-denys@ti.com>

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 .../recipes-core/images/arago-tiny-image.bb        | 35 ++--------------------
 1 file changed, 3 insertions(+), 32 deletions(-)

diff --git a/meta-arago-distro/recipes-core/images/arago-tiny-image.bb b/meta-arago-distro/recipes-core/images/arago-tiny-image.bb
index 465d322..5d1733e 100644
--- a/meta-arago-distro/recipes-core/images/arago-tiny-image.bb
+++ b/meta-arago-distro/recipes-core/images/arago-tiny-image.bb
@@ -1,16 +1,9 @@
-# Common pieces for Arago images
+ARAGO_SYSVINIT = "1"
 
-LICENSE = "MIT"
-
-COMPATIBLE_MACHINE = "ti-soc"
-
-IMAGE_FEATURES += "package-management splash"
+require arago-image.inc
 
 IMAGE_FSTYPES += "cpio"
 
-# 4KB per 1 inode should be enough
-EXTRA_IMAGECMD_ext2.gz += "-i 4096"
-
 # Install a small set of utils which can be used for diagnostics
 ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= " \
 	parted \
@@ -21,31 +14,9 @@ ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= " \
 	arago-feed-config \
 "
 
-IMAGE_INSTALL += " \
+IMAGE_INSTALL = " \
 	packagegroup-arago-sysvinit-boot \
 	${ARAGO_TINY_IMAGE_EXTRA_INSTALL} \
 "
 
 export IMAGE_BASENAME = "arago-tiny-image"
-
-IMAGE_LINGUAS = ""
-
-make_bootfiles_symlinks_relative() {
-    for f in "${IMAGE_ROOTFS}/boot"/*
-    do
-        [ -L "$f" ] || continue
-
-        l=$(readlink "$f")
-        if [ "${l:0:6}" == "/boot/" ]
-        then
-            ln -sf "${l##/boot/}" "$f"
-        elif ["${l:0:1}" == "/" ]
-        then
-            ln -sf "..$l" "$f"
-        fi
-    done
-}
-
-ROOTFS_POSTPROCESS_COMMAND += "make_bootfiles_symlinks_relative;"
-
-inherit core-image
-- 
2.7.4



  parent reply	other threads:[~2019-11-06 19:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06 19:02 [RFC][PATCH 0/9] Cleanup of packagegroups/images #1 Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 1/9] packagegroup-arago-cross-canadian: deprecate in favor of upstream packagegroup-cross-canadian Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 2/9] nativesdk-packagegroup-arago-sdk-host: deprecate in favor of upstream nativesdk-packagegroup-sdk-host Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 3/9] arago-console-image: drop unused image recipe Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 4/9] " Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 5/9] arago-test-image: " Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 6/9] tisdk-recovery-rootfs-image: " Denys Dmytriyenko
2019-11-06 19:02 ` [RFC][PATCH 7/9] arago-core-tisdk-bundle: add missing deployment of J7 SYSFW binary Denys Dmytriyenko
2019-11-06 19:02 ` Denys Dmytriyenko [this message]
2019-11-06 19:02 ` [RFC][PATCH 9/9] arago-image.inc: unbreak populate_sdk task Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1573066944-48181-9-git-send-email-denys@ti.com \
    --to=denys@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.