2013/8/9 Felix Fietkau <n...@openwrt.org>: > On 2013-08-09 9:44 AM, Rafał Miłecki wrote: >> --- >> oprofile requires System.map, which is not included in the OpenWrt >> image. I tried to modify Makefile to include it, but it doesn't seem >> to be available at the point of executing Package/oprofile/install: >> >> install -d -m0755 >> /home/zajec/openwrt/openwrt.git/build_dir/target-mipsel_uClibc-0.9.33.2/oprofile-0.9.9/ipkg-brcm47xx/oprofile/boot >> install -m0755 >> /home/zajec/openwrt/openwrt.git/build_dir/target-mipsel_uClibc-0.9.33.2/linux-brcm47xx/linux-3.6.11/System.map >> >> /home/zajec/openwrt/openwrt.git/build_dir/target-mipsel_uClibc-0.9.33.2/oprofile-0.9.9/ipkg-brcm47xx/oprofile/boot >> install: cannot stat >> '/home/zajec/openwrt/openwrt.git/build_dir/target-mipsel_uClibc-0.9.33.2/linux-brcm47xx/linux-3.6.11/System.map': >> No such file or directory >> make[3]: *** >> [/home/zajec/openwrt/openwrt.git/bin/brcm47xx/packages/oprofile_0.9.9-1_brcm47xx.ipk] >> Error 1 >> make[3]: Leaving directory >> `/home/zajec/openwrt/openwrt.git/package/devel/oprofile' >> make[2]: *** [package/devel/oprofile/compile] Error 2 >> make[2]: Leaving directory `/home/zajec/openwrt/openwrt.git' >> make[1]: *** >> [/home/zajec/openwrt/openwrt.git/staging_dir/target-mipsel_uClibc-0.9.33.2/stamp/.package_compile] >> Error 2 >> make[1]: Leaving directory `/home/zajec/openwrt/openwrt.git' >> make: *** [world] Error 2 >> >> Is there any trick I can do to make oprofile include System.map? I tried >> to add @PACKAGE_kernel dependency, but it didn't work. > No, this won't work. The kernel is only built *after* all packages, so > there's no way for oprofile to include the System.map. > What does it need it for? Maybe you should just give it a fake file...
I *suspect* it's used to translate some magic numbers into functions names. -- Rafał _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel