@ -15,10 +15,6 @@ KERNEL_LOADADDR := 0x00008000
SIGNATURE := $( shell printf "%.8s" $( SOURCE_DATE_EPOCH) )
SIGNATURE := $( shell printf "%.8s" $( SOURCE_DATE_EPOCH) )
d e f i n e B u i l d / d t b
$( call Image/BuildDTB,$( DTS_DIR) /$( DEVICE_DTS) .dts,$@ .dtb)
e n d e f
d e f i n e B u i l d / b o o t - s c r
d e f i n e B u i l d / b o o t - s c r
rm -f $@ -boot.scr
rm -f $@ -boot.scr
sed -e 's#@ROOT@#$(SIGNATURE)#g' \
sed -e 's#@ROOT@#$(SIGNATURE)#g' \
@ -29,7 +25,7 @@ endef
d e f i n e B u i l d / b o o t - i m g
d e f i n e B u i l d / b o o t - i m g
rm -f $@ .boot
rm -f $@ .boot
mkfs.fat -C $@ .boot $$ ( ( $( CONFIG_TARGET_KERNEL_PARTSIZE) * 1024 ) )
mkfs.fat -C $@ .boot $$ ( ( $( CONFIG_TARGET_KERNEL_PARTSIZE) * 1024 ) )
$( foreach dts,$( DEVICE_DTS) , mcopy -i $@ .boot $( DTS_DIR) / $( dts) .dtb ::$( dts) .dtb; )
$( foreach dts,$( DEVICE_DTS) , mcopy -i $@ .boot $( KDIR) /image- $( dts) .dtb ::$( dts) .dtb; )
mcopy -i $@ .boot $( IMAGE_KERNEL) ::$( KERNEL_NAME)
mcopy -i $@ .boot $( IMAGE_KERNEL) ::$( KERNEL_NAME)
-mcopy -i $@ .boot $@ -boot.scr ::boot.scr
-mcopy -i $@ .boot $@ -boot.scr ::boot.scr
e n d e f
e n d e f
@ -37,7 +33,7 @@ endef
d e f i n e B u i l d / b o o t - i m g - e x t 4
d e f i n e B u i l d / b o o t - i m g - e x t 4
rm -fR $@ .boot
rm -fR $@ .boot
mkdir -p $@ .boot
mkdir -p $@ .boot
$( foreach dts,$( DEVICE_DTS) , $( CP) $( DTS_DIR) / $( dts) .dtb $@ .boot; )
$( foreach dts,$( DEVICE_DTS) , $( CP) $( KDIR) /image- $( dts) .dtb $@ .boot/$( dts) .dtb ; )
$( CP) $( IMAGE_KERNEL) $@ .boot/$( KERNEL_NAME)
$( CP) $( IMAGE_KERNEL) $@ .boot/$( KERNEL_NAME)
-$( CP) $@ -boot.scr $@ .boot/boot.scr
-$( CP) $@ -boot.scr $@ .boot/boot.scr
make_ext4fs -J -l $( CONFIG_TARGET_KERNEL_PARTSIZE) M $@ .bootimg $@ .boot
make_ext4fs -J -l $( CONFIG_TARGET_KERNEL_PARTSIZE) M $@ .bootimg $@ .boot
@ -70,7 +66,7 @@ define Build/omnia-medkit-initramfs
rm -rf $( dir $( IMAGE_KERNEL) ) boot
rm -rf $( dir $( IMAGE_KERNEL) ) boot
mkdir -p $( dir $( IMAGE_KERNEL) ) boot/boot/
mkdir -p $( dir $( IMAGE_KERNEL) ) boot/boot/
cp $( KDIR) /zImage-initramfs $( dir $( IMAGE_KERNEL) ) boot/boot/zImage
cp $( KDIR) /zImage-initramfs $( dir $( IMAGE_KERNEL) ) boot/boot/zImage
cp $( DTS_DIR) / $( DEVICE_DTS) .dtb $( dir $( IMAGE_KERNEL) ) boot/boot/dtb
cp $( KDIR) /image- $( DEVICE_DTS) .dtb $( dir $( IMAGE_KERNEL) ) boot/boot/dtb
$( TAR) -rp --numeric-owner --owner= 0 --group= 0 --sort= name \
$( TAR) -rp --numeric-owner --owner= 0 --group= 0 --sort= name \
$( if $( SOURCE_DATE_EPOCH) ,--mtime= " @ $( SOURCE_DATE_EPOCH) " ) \
$( if $( SOURCE_DATE_EPOCH) ,--mtime= " @ $( SOURCE_DATE_EPOCH) " ) \
--file= $@ -C $( dir $( IMAGE_KERNEL) ) boot/ .
--file= $@ -C $( dir $( IMAGE_KERNEL) ) boot/ .