branding: add LEDE branding
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
@@ -33,7 +33,7 @@ use Compress::Zlib;
|
||||
my $version = "0.1";
|
||||
my %arg = (
|
||||
o => 'bcm963xx_fs_kernel',
|
||||
b => 'OpenWrt',
|
||||
b => 'LEDE',
|
||||
c => '6348',
|
||||
s => 64,
|
||||
f => 0xbfc00000,
|
||||
|
||||
@@ -173,7 +173,7 @@ if ($tree) {
|
||||
}
|
||||
|
||||
if (!defined $root) {
|
||||
print "Must be run from the top-level dir. of a OpenWrt tree\n";
|
||||
print "Must be run from the top-level dir. of a LEDE tree\n";
|
||||
exit(2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
static const char mconf_readme[] = N_(
|
||||
"Overview\n"
|
||||
"--------\n"
|
||||
"Some OpenWrt features may be built directly into the image.\n"
|
||||
"Some LEDE features may be built directly into the image.\n"
|
||||
"Some may be made into installable ipkg packages. Some features\n"
|
||||
"may be completely removed altogether.\n"
|
||||
"\n"
|
||||
|
||||
@@ -9,12 +9,6 @@ try_version() {
|
||||
[ -n "$SOURCE_DATE_EPOCH" ]
|
||||
}
|
||||
|
||||
try_svn() {
|
||||
[ -d .svn ] || return 1
|
||||
SOURCE_DATE_EPOCH="$(./scripts/portable_date.sh "$(LC_ALL=C svn info | sed -ne 's/^Last Changed Date: //p')" +%s)"
|
||||
[ -n "$SOURCE_DATE_EPOCH" ]
|
||||
}
|
||||
|
||||
try_git() {
|
||||
[ -e .git ] || return 1
|
||||
SOURCE_DATE_EPOCH="$(git log -1 --format=format:%ct)"
|
||||
@@ -27,5 +21,5 @@ try_hg() {
|
||||
[ -n "$SOURCE_DATE_EPOCH" ]
|
||||
}
|
||||
|
||||
try_version || try_svn || try_git || try_hg || SOURCE_DATE_EPOCH=""
|
||||
try_version || try_git || try_hg || SOURCE_DATE_EPOCH=""
|
||||
echo "$SOURCE_DATE_EPOCH"
|
||||
|
||||
@@ -11,7 +11,7 @@ try_version() {
|
||||
|
||||
try_git() {
|
||||
git rev-parse --git-dir >/dev/null 2>&1 || return 1
|
||||
REV="$(git describe | sed "s/reboot-\([0-9]*\)-.*/\1/g")"
|
||||
REV="$(git describe --match reboot | sed "s/reboot-\([0-9]*\)-.*/\1/g")"
|
||||
[ -n "$REV" ]
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ WD=$(pwd)
|
||||
mkdir -p "$TARGET/CONTROL"
|
||||
grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control"
|
||||
grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \
|
||||
echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>" >> "$TARGET/CONTROL/control"
|
||||
echo "Maintainer: LEDE Community <lede-dev@lists.infradead.org>" >> "$TARGET/CONTROL/control"
|
||||
grep '^Source' "$CONTROL" 2>&1 >/dev/null || {
|
||||
pkgbase=$(echo "$WD" | sed -e "s|^$TOPDIR/||g")
|
||||
[ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
ver=$(uname -r)
|
||||
arch=$(uname -m)
|
||||
echo "Preparing OpenBSD $arch $ver for OpenWrt"
|
||||
echo "Preparing OpenBSD $arch $ver for LEDE"
|
||||
PKG_PATH="http://ftp.openbsd.org/pub/OpenBSD/${ver}/packages/${arch}/"
|
||||
export PKG_PATH
|
||||
pkg_add -v gmake
|
||||
|
||||
Reference in New Issue
Block a user