Skip to content

Commit

Permalink
download original files from azure storage (sonic-net#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Feb 28, 2017
1 parent 258652d commit 73e99e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ DEBIAN_FILE = linux_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION).debian.tar.xz
URL = http://security.debian.org/debian-security/pool/updates/main/l/linux
BUILD_DIR=linux-$(KERNEL_VERSION)

DSC_FILE_URL = "https://sonicstorage.blob.core.windows.net/packages/linux_3.16.36-1+deb8u2.dsc?sv=2015-04-05&sr=b&sig=9wBtvznS4Ih4JTT2%2FWZzlnaW0XY4iCQlzIhdaHlA3dw%3D&se=2030-11-07T19%3A41%3A19Z&sp=r"
DEBIAN_FILE_URL = "https://sonicstorage.blob.core.windows.net/packages/linux_3.16.36-1+deb8u2.debian.tar.xz?sv=2015-04-05&sr=b&sig=wlcTymPDhkX8HOsM5im7789b76%2BewwCILOFUpFZYBvk%3D&se=2030-11-07T19%3A40%3A30Z&sp=r"
ORIG_FILE_URL = "https://sonicstorage.blob.core.windows.net/packages/linux_3.16.36.orig.tar.xz?sv=2015-04-05&sr=b&sig=ez%2Fv4ci4ADs7gnoflCr%2BrCMAK0e1WPN8%2F68sw33f9%2Bc%3D&se=2030-11-07T19%3A40%3A52Z&sp=r"

$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Obtaining the Debian kernel source
rm -rf $(BUILD_DIR)
wget -O $(DSC_FILE) $(URL)/$(DSC_FILE)
wget -O $(ORIG_FILE) $(URL)/$(ORIG_FILE)
wget -O $(DEBIAN_FILE) $(URL)/$(DEBIAN_FILE)
wget -O $(DSC_FILE) $(DSC_FILE_URL)
wget -O $(ORIG_FILE) $(ORIG_FILE_URL)
wget -O $(DEBIAN_FILE) $(DEBIAN_FILE_URL)

dpkg-source -x $(DSC_FILE)

Expand Down

0 comments on commit 73e99e9

Please sign in to comment.