Skip to content

Instantly share code, notes, and snippets.

@wongsyrone
Last active November 22, 2017 00:18
Show Gist options
  • Save wongsyrone/76f10469c383d6b257c85afd8da6e7ee to your computer and use it in GitHub Desktop.
Save wongsyrone/76f10469c383d6b257c85afd8da6e7ee to your computer and use it in GitHub Desktop.
openwrt/lede mac80211(compat-wireless/backports)
example: ./gentree.py --refresh --git-revision v4.14-rc1 --clean /home/hauke/linux/linux-next-clean/ ../backports-4.14-rc1
mine:
# needed by gentree.py
apt-get install coccinelle
git clone https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git
pushd backports
git checkout master
popd
git clone https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git /tmp/linux-next-clean/
(or use wireless testing tree: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-testing.git)
pushd /tmp/linux-next-clean
git checkout next-20170929
popd
pushd backports
./gentree.py --refresh --git-revision <tag-in-linux-next> --clean /tmp/linux-next-clean/ ../backports-<tag-name-or-snapshot-version-or-whatever>
popd
tar -cJf backports-4.14-rc2.tar.xz backports-4.14-rc2/
---
BACKPORTS_VERSION="v4.14-rc2-1-31-g86cf0e5d" <-- backports tree: tag-<commits-since-that-tag>-g<HEAD>
BACKPORTED_KERNEL_VERSION="wt-2017-11-01-0-gfe248fc2c180" <-- wireless-testing tree: tag-<commits-since-that-tag>-g<tagged-object>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment