contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead
This commit is contained in:
parent
2903acf1f2
commit
1c8db37e8b
2 changed files with 6 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=remote-update
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
|
|
@ -8,8 +8,11 @@ local NL='
|
|||
|
||||
find_architecture()
|
||||
{
|
||||
opkg list_installed 'base-files-*' | \
|
||||
sed -ne 's/base-files-\([^ ]\+\).*/\1/p'
|
||||
local ifs="$IFS"; IFS="-"
|
||||
set -- $(opkg list_installed kernel)
|
||||
IFS="$ifs"
|
||||
|
||||
echo "$3"
|
||||
}
|
||||
|
||||
find_image()
|
||||
|
|
Loading…
Reference in a new issue