All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] btrfs filesystem image creation using TARGET_DIR path
Date: Wed, 31 Jul 2019 14:45:16 +0200	[thread overview]
Message-ID: <20190731144516.06e94517@windsurf> (raw)
In-Reply-To: <CAP8JTaaqcBbCdoJHm5=zi0dc4NtNaq2Y=krx0UbCVz4PdB2sJw@mail.gmail.com>

Hello,

On Tue, 30 Jul 2019 18:33:52 +0530
chalil jitesh <chaliljitesh@gmail.com> wrote:

>  Hi,
> 
> I am trying to create a btrfs filesystem image from buildroot (buildroot
> 2019.02 version). During the btrfs image creation step in the file
> buildroot/fs/btrfs/btrfs.mk the target root file system directory path
> passed to -r option seems to be given as $(TARGET_DIR) which is pointing to
> build/buildroot-fs/btrfs/target instead of actual root file system
> directory $(BASE_TARGET_DIR) (as followed for other file system image
> creation like buildroot/fs/squashfs/squashfs.mk).
> Kindly please review if my understanding is correct or if i am mising any
> steps and if the -r option should point to $(BASE_TARGET_DIR).
> Attaching the changes done for review.

Using $(TARGET_DIR) is correct. What is the problem you are seeing ?

The way it works is the following:

 - BASE_TARGET_DIR is output/target. This is where all packages install
   their files that should be present on the target. During the package
   build/installation, TARGET_DIR points to BASE_TARGET_DIR.

 - For each filesystem image format that is enabled, a copy of the
   contents of BASE_TARGET_DIR is made, in a per-filesystem directory,
   output/build/buildroot-fs/<filesystem>/target

 - In the code creating each filesystem image, TARGET_DIR points to
   output/build/buildroot-fs/<filesystem>/target.

So, using $(TARGET_DIR) in btrfs.mk is correct.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2019-07-31 12:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 13:03 [Buildroot] btrfs filesystem image creation using TARGET_DIR path chalil jitesh
2019-07-31 12:45 ` Thomas Petazzoni [this message]
2019-08-01  6:49   ` chalil jitesh
2019-08-01  7:43     ` Thomas Petazzoni
2019-08-22 13:30       ` chalil jitesh
2019-08-22 16:31         ` Yann E. MORIN

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=20190731144516.06e94517@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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.