All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Sokolovsky <pmiscml@gmail.com>
To: Andy Wilcox <andy@protium.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: RFC: Renaming uboot-utils
Date: Mon, 17 Dec 2007 17:02:49 +0200	[thread overview]
Message-ID: <828321445.20071217170249@gmail.com> (raw)
In-Reply-To: <47668695.5010701@protium.com>

Hello Andy,

[cc'ed back to the list]

Monday, December 17, 2007, 4:24:21 PM, you wrote:

> Hi Paul, I appreciate the extra eyes.
>>
>>   Yeah, all this discussion became rather confusing. To understand
>> what's it all about, a careful look at the commit was required, and
>> that uncovered few botched things:
>>
>> --- packages/uboot/u-boot-utils_1.2.0.bb        64396fa43c9fcef1ed1cd3ae82a49d140febbbd0
>> +++ packages/uboot/u-boot-utils_1.2.0.bb        64396fa43c9fcef1ed1cd3ae82a49d140febbbd0
>>
>> +DEPENDS_openprotium = "mtd-utils"
>>
>>    Think again - does u-boot-utils require mtd-utils headers or tools
>> during compile-time? Moreover, is it required for openprotium only?
>>
>> +SRC_URI_append_openprotium = " \
>> +        file://fw_env.c.patch;patch=1 \
>> +        file://tools-Makefile.patch;patch=1 \
>> +        file://env-Makefile.patch;patch=1 \
>> +        file://fw_env.config"
>>
>>    What so special of these patches that they apply only to
>> openprotium?
>>
>>   
> Building fw_setenv does require mtd-utils at compile time to pick up 
> certain headers.

  Hm. Can't it be really built against just kernel headers? Pity, but
ok.

> OP is the only distro that currently needs u-boot-utils (for fw_setenv,
> a target
> utility).  I was trying to bend that out of the way: this package won't do
> anything if you aren't building OP.  But perhaps that was wrong - I should
> always built that utility, and you can use this package or not.  Is the
> latter
> way the right OE way?

  Yes, I'd say the right way for mainline OE is to use machine/distro
overrides very sparingly, in selected places only. OE provides
flexible overrides mechanism to address special needs a vendor may have
to build its product per its requirements, but such overrides better live
in vendor trees/overlays. For mainline OE, I'd say it's better to err
on generality, than create complex and non-maintainable overrides maze
(an example is OPIE which risked removal from OE due to this, and by
now has been almost completely cleared off from any
machine-specific hacks).

>> +EXTRA_OEMAKE_openprotium = "CROSS_COMPILE=${TARGET_PREFIX}"
>>
>>    Overrides above are worth privilege of doubt, but this one doesn't
>> need it: doing things like this in the OE mainline is rather incorrect
>> behavior to all other projects/users.
>>   
> Yeah, sorry - this is a remnant from the (broken) way the old package
> worked.  I should have caught that.
>> --- packages/tasks/task-base.bb 784db9539c99a3dfc0ce43cc4b61f9cd5eba3b27
>> +++ packages/tasks/task-base.bb 7a9b59f5510daa79b732e48d67445e1d5ebc4c81
>>  RDEPENDS_task-base-uboot = "\
>> -    uboot-utils"
>> +    u-boot-utils-native"
>>
>>      More attention could have been spent here too - non-native
>> package *cannot* RDEPENDS on native, this is one of abort conditions
>> in insane.bbclass. Someone who added the original line thought that
>> uboot-utils is actually what its name suggests. When you'll be fixing
>> it, don't forget about this:
>>   
> Perhaps the MACHINE|DISTRO_FEATURES uboot should just
> go away?  It was only needed to make the native mkimage program,
> which really should be a kernel DEPENDS anyway.  Sound
> reasonable?

  Let's hear Rod Whitby speak up, AFAIR, he added those features. But
as far as I understand, no, they should be there, and are the way to
add a particular bootloader support to *any* distro. Have a look at
apex and redboot support at the same place. So, if you say that your
machine has u-boot as bootloader, you'll get utils to manage it in the
image. Ditto for other bootloaders.

[]


-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




  parent reply	other threads:[~2007-12-17 15:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17  3:14 RFC: Renaming uboot-utils Andy Wilcox
2007-12-17 11:09 ` Paul Sokolovsky
     [not found]   ` <47668695.5010701@protium.com>
2007-12-17 15:02     ` Paul Sokolovsky [this message]
2007-12-17 18:23       ` Andy Wilcox
2007-12-17 21:31         ` Koen Kooi
2007-12-17 22:19           ` Paul Sokolovsky
2007-12-17 22:41             ` Marcin Juszkiewicz
2007-12-17 21:25       ` Rod Whitby
  -- strict thread matches above, loose matches on Subject: below --
2007-12-14  4:41 Andy Wilcox
2007-12-14 16:30 ` Philip Balister
2007-12-14 18:41   ` Khem Raj
2007-12-14 20:16 ` Koen Kooi
2007-12-15 13:14   ` Leon Woestenberg
2007-12-17 11:13   ` Paul Sokolovsky

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=828321445.20071217170249@gmail.com \
    --to=pmiscml@gmail.com \
    --cc=andy@protium.com \
    --cc=openembedded-devel@lists.openembedded.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.