-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[baseimage]: install picocom 3.1 in base image (#1943)
* [baseimage]: install picocom 3.1 in base image Signed-off-by: Guohan Lu <gulv@microsoft.com> * add picocom to stretch build Signed-off-by: Guohan Lu <gulv@microsoft.com> * fix slave.mk bug Signed-off-by: Guohan Lu <gulv@microsoft.com>
- Loading branch information
Showing
6 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# picocom packages | ||
|
||
PICOCOM_VERSION = 3.1-2 | ||
|
||
export PICOCOM_VERSION | ||
|
||
PICOCOM = picocom_$(PICOCOM_VERSION)_amd64.deb | ||
$(PICOCOM)_SRC_PATH = $(SRC_PATH)/picocom | ||
SONIC_MAKE_DEBS += $(PICOCOM) | ||
|
||
SONIC_STRETCH_DEBS += $(PICOCOM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.ONESHELL: | ||
SHELL = /bin/bash | ||
.SHELLFLAGS += -e | ||
|
||
MAIN_TARGET = picocom_$(PICOCOM_VERSION)_amd64.deb | ||
|
||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : | ||
# Remove any stale files | ||
rm -rf ./picocom-3.1 | ||
|
||
# Get source package | ||
wget -NO picocom_$(PICOCOM_VERSION).dsc "https://sonicstorage.blob.core.windows.net/packages/debian/picocom_3.1-2.dsc?sv=2015-04-05&sr=b&sig=puo9KA27jT9Ey%2FkxRPBLIm30gFDdQJF85VKA7vuv9hk%3D&se=2155-07-10T08%3A03%3A50Z&sp=r" | ||
wget -NO picocom_$(PICOCOM_VERSION).debian.tar.xz "https://sonicstorage.blob.core.windows.net/packages/debian/picocom_3.1-2.debian.tar.xz?sv=2015-04-05&sr=b&sig=4HPuUi2FTb0AzCEsH9%2FsSfj17qIukyyOdRrHQFtjyBE%3D&se=2155-07-10T08%3A04%3A23Z&sp=r" | ||
wget -NO picocom_3.1.orig.tar.gz "https://sonicstorage.blob.core.windows.net/packages/debian/picocom_3.1.orig.tar.gz?sv=2015-04-05&sr=b&sig=RjQ84sf%2B%2FQuI%2B0PAcbPHXvnlNAuP%2BQoVrp2xzDJZfX4%3D&se=2155-07-10T08%3A04%3A45Z&sp=r" | ||
|
||
dpkg-source -x picocom_$(PICOCOM_VERSION).dsc | ||
|
||
# Build source and Debian packages | ||
pushd picocom-3.1 | ||
patch -p0 < ../debhelper_10.patch | ||
dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) | ||
popd | ||
|
||
# Move the newly-built .deb packages to the destination directory | ||
mv $(DERIVED_TARGETS) $* $(DEST)/ | ||
|
||
$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- debian/control.old 2018-08-17 08:05:35.996230100 +0000 | ||
+++ debian/control 2018-08-17 08:05:43.712230100 +0000 | ||
@@ -3,7 +3,7 @@ | ||
Priority: optional | ||
Maintainer: Matt Palmer <mpalmer@debian.org> | ||
Uploaders: W. Martin Borgert <debacle@debian.org> | ||
-Build-Depends: debhelper (>= 11), | ||
+Build-Depends: debhelper (>= 10), | ||
pandoc | ||
Standards-Version: 4.1.3 | ||
Rules-Requires-Root: no |