[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#767744: flash-kernel: There is no way to specify a custom dtb



Ian Campbell <ijc@hellion.org.uk> (2014-11-03):
> On Sun, 2014-11-02 at 12:08 +0100, Uwe Kleine-König wrote:
> > Package: flash-kernel
> > Version: 3.28
> > Severity: wishlist
> > 
> > Hello,
> > 
> > I want to use flash-kernel on a machine that uses a device tree blob that isn't
> > included in the kernel package. So flash-kernel's assumption to find
> > /usr/lib/linux-image-$kvers/$dtb_id is wrong.
> > 
> > Maybe something like:
> > 
> > 	# if dtb_name starts with / assume it's a stand alone file. Otherwise
> > 	# pick the one shipped by the linux image.
> > 	if expr "$dtb_name" : "/" >/dev/null; then
> > 		dtb="$dtb_name" 
> > 	else
> > 		dtb="/usr/lib/linux-image-$kvers/$dtb_name"
> > 	fi
> > 
> > would work?
> 
> expr isn't a builtin, right? So we don't need to worry about dash vs
> bash for it and whether the ":" operator is implemented.

Just use case and match on /*?

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: