> > 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.
Ahh... Inserting this into local.conf is working perfect. Thanks you. Best regards Allan W. Nielsen _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto