So PKG_SOURCE_SUBDIR is not the feature I am looking for. I'm trying to figure out how to make my package name end up different that the name inside the source zip.
In this case source zip has binutils-2.20.1a I want to name the project avr-binutils. The problem here is that binutils can be compiled for multiple targets - mipsel, avr, arm, whatever and these can all run on the same host. So I need some way to download binutils-2.20.1a, patch it and compile it into avr-binutils so that if someone else makes a arm-binutils package we don't end up stomping on each other with our patches. I have a similar issues with host packages - I'd like to name my pieces of gcc - avr-gcc, avr-mpc, avr-mpfr, avr-gmp, etc. But I can't figure out how to achieve the rename since the source downloads contain the simple name. On Sat, May 18, 2013 at 11:28 AM, Mirko Vogt <mi...@openwrt.org> wrote: > On 05/17/2013 09:25 PM, jonsm...@gmail.com wrote: >> PKG_NAME:=avr-binutils >> PKG_VERSION:=2.20.1a >> PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) >> PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2 >> PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/binutils/ > > This means you're telling OpenWrt, the unpacked folder is going to be named: > > avr-binutils-2.20.1a > > That doesn't mean you _force_ it to be like that. You're just telling > OpenWrt the top-folder within the archive has this name. That makes > sense, if the name of the folder within differs from the name of the > archive. > However in this case the top-folder isn't named 'avr-binutils-2.20.1a', > but 'binutils-2.20.1'. > > Check: > $ tar vjxf binutils-2.20.1a.tar.bz2 | head -1 > binutils-2.20.1/ > > So PKG_SOURCE_SUBDIR is supposed to be set to: binutils-2.20.1 > >> bash: >> /home/jonsmirl/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/avr-binutils-2.20.1a/configure: >> No such file or directory > > See above. The extracted folder is named 'binutils-2.20.1'. > > mirko > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Jon Smirl jonsm...@gmail.com _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel