File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,11 @@ openwrt/.config: openwrt/feeds.conf
2020 cat creator-kit.config > ../dist/openwrt/.config
2121 $(MAKE ) -C ../dist/openwrt defconfig
2222
23+ openwrt/version :
24+ ./getver.sh ../dist/openwrt > ../dist/openwrt/version
25+
2326.PHONY : build_openwrt
24- build_openwrt : openwrt/.config
27+ build_openwrt : openwrt/.config openwrt/version
2528 if test $( findstring J=,$( MAKEFLAGS) ) ; then \
2629 $(MAKE ) $(SUBMAKEFLAGS ) -C ../dist/openwrt -j$(J ) ; \
2730 else \
Original file line number Diff line number Diff line change @@ -4,3 +4,6 @@ CONFIG_TARGET_pistachio_marduk_marduk_cc2520=y
44CONFIG_PACKAGE_button-gateway=y
55CONFIG_PACKAGE_device-manager=y
66CONFIG_PACKAGE_webscripts=y
7+ CONFIG_IMAGEOPT=y
8+ CONFIG_VERSIONOPT=y
9+ CONFIG_VERSION_NUMBER="v0.9.0"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ export LANG=C
3+ export LC_ALL=C
4+ [ -n $1 ] && cd $1
5+
6+ try_git () {
7+ [ -e .git ] || return 1
8+ REV=" $( git log | grep -m 1 commit | awk ' {print substr ($2, 0, 7)}' ) "
9+ [ -n " $REV " ]
10+ }
11+
12+ try_git || REV=" unknown"
13+ echo " $REV "
You can’t perform that action at this time.
0 commit comments