All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] should u-boot have FIT support even without selecting CONFIG_FIT?
@ 2017-03-28 13:02 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2017-03-28 13:02 UTC (permalink / raw)
  To: u-boot


  not sure if i'm misreading this, but in the top-level Kconfig file,
i can see how one selects support for FIT images:

  config FIT
        bool "Support Flattened Image Tree"
        select MD5
        help
          This option allows you to boot the new uImage structure,
          Flattened Image Tree.  FIT is formally a FDT, which can include
          images of various types (kernel, FDT blob, ramdisk, etc.)
          in a single blob.  To boot this new uImage structure,
          pass the address of the blob to the "bootm" command.
          FIT is very flexible, supporting compression, multiple images,
          multiple configurations, verification through hashing and also
          verified boot (secure boot using RSA).

  if FIT

  config FIT_SIGNATURE
        bool "Enable signature verification of FIT uImages"

... etc etc ..., so far, so good.

  but in the tools/ directory, there's this in the Makefile:

  hostprogs-y += dumpimage mkimage
  hostprogs-$(CONFIG_FIT_SIGNATURE) += fit_info fit_check_sign

that seems to make sense, the host progs dumpimage and mkimage will be
built regardless of whether or not FIT support is selected, but
further down:

# common objs for dumpimage and mkimage
dumpimage-mkimage-objs := aisimage.o \
                        atmelimage.o \
                        $(FIT_SIG_OBJS-y) \
                        common/bootm.o \
                        lib/crc32.o \
                        default_image.o \
                        lib/fdtdec_common.o \
                        lib/fdtdec.o \
                        fit_common.o \
                        fit_image.o \
                        common/image-fit.o \
                        ... snip ...

isn't this adding at least a few FIT-related routines to those
hostprogs, regardless of whether FIT support is selected? can someone
clarify this?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-28 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 13:02 [U-Boot] should u-boot have FIT support even without selecting CONFIG_FIT? Robert P. J. Day

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.