Skip to content

Commit

Permalink
Add sonic_wpa_supplicant as submodule
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur committed Dec 24, 2020
1 parent 7b969de commit 7169af2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@
[submodule "src/sonic-mgmt-common"]
path = src/sonic-mgmt-common
url = https://github.com/Azure/sonic-mgmt-common.git
[submodule "src/wpasupplicant/sonic-wpa-supplicant"]
path = src/wpasupplicant/sonic-wpa-supplicant
url = https://github.com/Azure/sonic-wpa-supplicant
3 changes: 1 addition & 2 deletions rules/wpasupplicant.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# wpa package

# WPASUPPLICANT_VERSION = hostap_2_9
WPASUPPLICANT_VERSION = 2.9.0-12
WPASUPPLICANT_VERSION = 2.9.0-14

export WPASUPPLICANT_VERSION

Expand Down
11 changes: 0 additions & 11 deletions src/wpasupplicant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,8 @@ MAIN_TARGET = wpasupplicant_$(WPASUPPLICANT_VERSION)_$(CONFIGURED_ARCH).deb
DERIVED_TARGETS = wpasupplicant-dbgsym_$(WPASUPPLICANT_VERSION)_$(CONFIGURED_ARCH).deb

$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Remove any stale files
rm -rf ./wpa

# Clone wpa repo
git clone https://github.com/Azure/sonic-wpa-supplicant.git
pushd ./sonic-wpa-supplicant/wpa_supplicant
# Reset HEAD to the commit of the proper tag
# NOTE: Using "git checkout <tag_name>" here detaches our HEAD,
# which stg doesn't like, so we use this method instead
# NOTE: For some reason, tags in the Debian monit repo are prefixed with "1%"
pushd ./sonic-wpa-supplicant
# git checkout wpa/$(WPASUPPLICANT_VERSION)
# Build source and Debian packages
dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)
popd

Expand Down
1 change: 1 addition & 0 deletions src/wpasupplicant/sonic-wpa-supplicant
Submodule sonic-wpa-supplicant added at 288cca

0 comments on commit 7169af2

Please sign in to comment.