-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build]: Include SONiC version into installer. #472
Changes from 3 commits
bc2e3a4
1fd773f
479099a
7e956d5
d62deb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ DOCKER_BUILD = docker build --no-cache \ | |
--build-arg user=$(USER) \ | ||
--build-arg uid=$(shell id -u) \ | ||
--build-arg guid=$(shell id -g) \ | ||
--build-arg hostname=$(shell echo $$HOSTNAME) \ | ||
-t $(SLAVE_IMAGE) \ | ||
sonic-slave && \ | ||
docker tag $(SLAVE_IMAGE):latest $(SLAVE_IMAGE):$(SLAVE_TAG) | ||
|
@@ -36,7 +37,7 @@ DOCKER_BUILD = docker build --no-cache \ | |
-C sonic \ | ||
-f slave.mk \ | ||
PLATFORM=$(PLATFORM) \ | ||
DEBUG_BUILD=$(DEBUG_BUILD) \ | ||
BUILD_NUMBER=$(BUILD_NUMBER) \ | ||
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to keep ENABLE_DHCP_GRAPH_SERVICE There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
$@ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -257,6 +257,17 @@ sudo cp files/dhcp/graphserviceurl $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks | |
sudo cp files/dhcp/snmpcommunity $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/ | ||
sudo cp files/dhcp/dhclient.conf $FILESYSTEM_ROOT/etc/dhcp/ | ||
|
||
## Version file | ||
sudo mkdir -p $FILESYSTEM_ROOT/etc/sonic | ||
sudo tee $FILESYSTEM_ROOT/etc/sonic/sonic_version.yml > /dev/null <<EOF | ||
build_version: $(sonic_get_version) | ||
debian_version: $(cat $FILESYSTEM_ROOT/etc/debian_version) | ||
kversion: $kversion | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change the variable name? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agree that it is probably better to keep prev name, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In sysDescription.j2, do we want to remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kversion was a typo. Thanks for comment. |
||
asic_type: $sonic_asic_platform | ||
build_date: $(date -u) | ||
built_by: $USER@$BUILD_HOSTNAME | ||
EOF | ||
|
||
if [ -f sonic_debian_extension.sh ]; then | ||
./sonic_debian_extension.sh $FILESYSTEM_ROOT $PLATFORM_DIR | ||
fi | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why DEBUG_BUILD option is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is redundant. In case build contains local changes, "dirty" will be appended to version or used instead of git revision.