Has no effect, I must have something slightly wrong since I can see
other Makefile using it.

include $(TOPDIR)/rules.mk

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/
PKG_MD5SUM:=

PKG_INSTALL=1

include $(INCLUDE_DIR)/package.mk

define Package/avr-binutils
  CATEGORY:=Development
  SECTION:=devel
  TITLE:=avr-binutils
  URL:=http://www.avr-binutils.org/
  DEPENDS:=
endef

jonsmirl@jonsmirl-VirtualBox:~/openwrt$ make package/avr-binutils/compile V=s
Collecting package info: done
make[1]: Entering directory `/home/jonsmirl/openwrt'
make[2]: Entering directory `/home/jonsmirl/openwrt/package/toolchain'
if [ -f 
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean
]; then rm -f 
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean;
fi; echo "libc" >>
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f 
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean
]; then rm -f 
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean;
fi; echo "libgcc" >>
/home/jonsmirl/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo/toolchain.default.install
WARNING: skipping libssp -- package not selected
WARNING: skipping libstdcpp -- package not selected
WARNING: skipping libthread-db -- package not selected
WARNING: skipping libgfortran -- package not selected
WARNING: skipping ldd -- package not selected
WARNING: skipping ldconfig -- package not selected
make[2]: Leaving directory `/home/jonsmirl/openwrt/package/toolchain'
make[2]: Entering directory
`/home/jonsmirl/openwrt/feeds/packages/devel/avr-binutils'
. /home/jonsmirl/openwrt/include/shell.sh; bzcat
/home/jonsmirl/openwrt/dl/binutils-2.20.1a.tar.bz2 | /bin/tar -C
/home/jonsmirl/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/avr-binutils-2.20.1a/..
-xf -
touch 
/home/jonsmirl/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/avr-binutils-2.20.1a/.prepared_66d5841369295208e0fe5ac792688489
(cd 
/home/jonsmirl/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/avr-binutils-2.20.1a;
rm -f config.cache; SHELL="/bin/bash"
/home/jonsmirl/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/avr-binutils-2.20.1a/configure
--build=i686-linux-gnu --host=mipsel --targe./bin/ramips/packagest=avr
--prefix=/usr --disable-static --with-gnu-ld --with-gnu-as
--enable-install-libbfd --with-dwarf2 );
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
make[2]: *** 
[/home/jonsmirl/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/avr-binutils-2.20.1a/.configured_]
Error 127
make[2]: Leaving directory
`/home/jonsmirl/openwrt/feeds/packages/devel/avr-binutils'
make[1]: *** [package/feeds/packages/avr-binutils/compile] Error 2
make[1]: Leaving directory `/home/jonsmirl/openwrt'
make: *** [package/avr-binutils/compile] Error 2
jonsmirl@jonsmirl-VirtualBox:~/openwrt$



On Fri, May 17, 2013 at 3:04 PM, Mirko Vogt <mi...@openwrt.org> wrote:
> On 05/17/2013 08:48 PM, jonsm...@gmail.com wrote:
>> Let's say I want to make a package:
>>
>> PKG_NAME:=avr-gcc
>> PKG_VERSION:=1.0
>>
>> but my source is named gcc
>> PKG_SOURCE:=gcc-$(PACKAGE_VERSION).tar.gz
>>
>> When this source gets uncompressed it gets put into.
>>
>> target_mipsel/avr-gcc/..
>> The uncompress set goes up a level in directories
>> the source ends up in target_mipsel/gcc-1.0
>>
>> What is the right way to achieve a rename like this?
>> I need the source in the avr-gcc tree so that I can apply avr specific
>> patches to it.
>
>
> You can override the default of PKG_SOURCE_SUBDIR to point it to where
> the src actually lies after unpacking, which in this case would be:
>
> PKG_SOURCE_SUBDIR:=gcc-$(PACKAGE_VERSION)
>
>   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

Reply via email to