Hi Allan, On Tuesday 30 July 2013 09:54:40 Allan Nielsen wrote: > I'm new to Yocto and I'm trying to build a debug image. > > My image recipe looks like this: > > IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} u-boot > webstax3 vtss-uio-mod" > IMAGE_LINGUAS = " " > > LICENSE = "MIT" > > inherit core-image > > DEBUG_BUILD = "1" > > DEBUG_FLAGS = "-ggdb3 -O0 -fno-omit-frame-pointer" > DEBUG_OPTIMIZATION = "-ggdb3 -O0 -fno-omit-frame-pointer" > > IMAGE_ROOTFS_SIZE = "16384" > IMAGE_FEATURES = "debug-tweaks tools-debug dbg-pkgs" > > # remove not needed ipkg informations > ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " > > IMAGE_FSTYPES = "tar.gz ext2.gz.u-boot" > > > But when I inspect the build logs of my packets I see that they have not > been build with "-ggdb3 -O0 -fno-omit-frame-pointer"
You can't set variables in an image recipe that need to be picked up by other recipes (in this specific case DEBUG_BUILD, DEBUG_FLAGS and DEBUG_OPTIMISATION); you need to set these at a higher level i.e. local.conf or a custom distro configuration. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto