Hi 

This is my third mail on this topic, the second one seem to be stuck 
somewhere...
> > doing a s/^config/menuconfig/ on platforms/image_tgz.in fixes the problem
> > but looks a little funny in the menusystem.
>
> I changed a lot of stuff for hd.img, you need to run "ptxdist oldconfig
> platform" for this to work. I didn't touch the tgz image code.
> What exactly is broken for you?
Ups, sorry i somehow managed to accidentially delete a part of the mail just 
before sending. 

It seems to me that ptxdist-2011.03.x does not create any tgz image anymore.
It gets created if config is replaced with menuconfig in image_tgz.in.

I have also an firmware update image creation step, Which creates a tar file 
with md5 sums of the linuximage and of root.ubi which are of curse also 
included. Unfortunatly this step got also borken somewhere from 
ptxdist-2010.11.0 to 2011.03.x. The files are attached for reference.

Best regards
Tim
#
# create PMX fwupdate tarball
#
SVNVERSION=`sed --quiet -e 's/^SVNVERSION="\([^"]*\)"/\1/p' 
$(PTXDIST_SYSROOT_TARGET)/etc/hbmversion.conf`
PLATFORM="$(call remove_qoutes, $(PTXCONF_PLATFORM))"
PLATFORM_VERSION="$(call remove_quotes, $(PTXCONF_PLATFORM_VERSION))"
MIN_UPDATER_VERSION="$(call remove_quotes, 
$(PTXCONF_IMAGE_PMX_MIN_UPDATER_VERSION))"
DATE=`date +"%Y-%m-%d %H:%M"`

SEL_ROOTFS-$(PTXCONF_IMAGE_PMX)  += $(IMAGEDIR)/fwupdate-$(PLATFORM_VERSION).pmx

$(IMAGEDIR)/fwupdate-$(PLATFORM_VERSION).pmx: $(IMAGEDIR)/root.ubi 
$(IMAGEDIR)/linuximage $(STATEDIR)/image_working_dir
        @echo -n "Creating $(notdir $(@)) ... " ;
        @cd $(IMAGEDIR); \
        mkdir fwupdate ;\
        cp $(IMAGEDIR)/root.ubi fwupdate ;\
        cp $(IMAGEDIR)/linuximage fwupdate; \
        md5sum fwupdate/linuximage > fwupdate/linuximage.md5 ;\
        md5sum fwupdate/root.ubi > fwupdate/root.ubi.md5; \
        echo -e 
"PLATFORM=\"$(PTXCONF_PLATFORM)\"\nRELEASENAME=\"$(PTXCONF_IMAGE_PMX_RELEASENAME)\"\nVERSION=\"$(PTXCONF_PLATFORM_VERSION)\"\nSVNVERSION=\"$(SVNVERSION)\"\nDATE=\"$(DATE)\"\nMIN_UPDATER_VERSION=$(MIN_UPDATER_VERSION)"
 > fwupdate/control ;\
        tar czf $(IMAGEDIR)/fwupdate-$(PLATFORM_VERSION).pmx fwupdate ;\
        rm -r fwupdate ;\
        echo "done" 

# vim600:set foldmethod=marker:
# vim600:set syntax=make:
## SECTION=image

menuconfig IMAGE_PMX
        bool
        select IMAGE_UBI
        prompt "Generate PMX release image"
        help
        This is essentially an tarball for easy firmware update
        Consists of linuximage,root.ubi,linuximage.md5,root.ubi.md5,version

if IMAGE_PMX
config IMAGE_PMX_MIN_UPDATER_VERSION
    string
    default "0"
    prompt "minimum version for fw updater"
    help
                This determines the minimum version of the firmware updater

config IMAGE_PMX_RELEASENAME
        string
        default "humpty dumpty"
        prompt "internal release name"
        help 
                This is the internal releasename of the firmware
endif
-- 
ptxdist mailing list
[email protected]

Reply via email to