Ciao!
How are you?
I got this Makefile
:
PKG_SOURCE_URL:=https://github.com/eduperez/mwlwifi_LEDE
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=1f5b1187b604ac844ef898841ccc2b8514297f70
How can I calculate the PKG_MIRROR_HASH
?
After the first build?
OK, I found it, it is like this:
rm -rf ./bin/packages/*/redis* -rf
rm -rf ./build_dir/*/redis*
rm -rf ./dl/redis* -rf
rm -rf ./feeds/redis*
rm -rf ./staging_dir/packages/*/redis*
./scripts/feeds update redis
./scripts/feeds install -a -p redis
make package/feeds/redis/redis/download V=s
make package/feeds/redis/redis/check FIXUP=1 V=s
cat package/feeds/redis/redis/Makefile | less
2 Likes
Thanks, I used it to generate https://github.com/openwrt-routing/packages/pull/574
let me generalize for other people coming here
parent="routing"
mypackage="bmx6"
rm -rf ./bin/packages/*/${mypackage}* -rf
rm -rf ./build_dir/*/${mypackage}*
rm -rf ./dl/${mypackage}* -rf
rm -rf ./feeds/${mypackage}*
rm -rf ./staging_dir/packages/*/${mypackage}*
./scripts/feeds update ${mypackage}
./scripts/feeds install -a -p ${mypackage}
make package/feeds/${parent}/${mypackage}/download V=s
make package/feeds/${parent}/${mypackage}/check FIXUP=1 V=s
cat package/feeds/${parent}/${mypackage}/Makefile | less
Just for future searchers and ease-of-use for everyone.
From https://openwrt.org/docs/guide-developer/packages#use_source_repository
You can use PKG_MIRROR_HASH:=skip
and then
make package/mwlwifi_LEDE/download V=s
make package/mwlwifi_LEDE/check FIXUP=1 V=s
Or where-ever you are keeping it
It'll download and sha256sum
for you
2 Likes
system
Closed
5
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.