OpenWrt Forum Archive

Topic: Auto increment PKG_SOURCE_VERSION

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello.
I create and test new openwrt package.
When i commit change to git, i must change manualy in Makefile PKG_SOURCE_VERSION.
How automaticaly set PKG_SOURCE_VERSION="last_master_commit"?

And second question.
I write program in Lua language.
Is it possible to specify the type of architecture "all"?
I test package in Virtualbox x86, and after in real ar71xx router. And i must build two package: for x86 and ar71xx.

For easy git workflow during development see https://forum.openwrt.org/viewtopic.php … 02#p215402
To declare a package suitable for all architectures, add PKGARCH:=all to the "define Package/name" section, see e.g. package/network/ipv6/6to4/Makefile

PKGARCH:=all is work, thanks!

When i enable "Advanced configuration options (for developers)" and in its submenu enable "Enable package source tree override", i not see my package in "make menuconfig".
I repeated twice: remove my trunk folder, restore from old copy and see my packet in "make menuconfig", but after enable "Enable package source tree override", i do not see my package in "make menuconfig"...

It is bug?

Sounds more like a problem with your package. Never experienced such a behaviour here.

I found ptoblem.
If i add in depends "coreutils-stty" or "kmod-usb-serial-ftdi", my packet not show in menuconfig.

I repear this with example makefile from http://wiki.openwrt.org/ru/doc/devel/packages.(http://wiki.openwrt.org/doc/devel/packages)
And this bug is repeated.
(if i add "+lua +sqlite3-cli +lsqlite3 +zabbix-sender +zabbix-agentd +luasocket +kmod-usb-acm" - all ok)

I do not now, what is it...

(Last edited by first-leon on 18 Jul 2014, 17:09)

The discussion might have continued from here.