Skip to content

Commit 423a1ac

Browse files
jlevequeShuotian Cheng
authored and
Shuotian Cheng
committed
[installer]: Move platform-specific files under new device/ tree (#450)
* Move platform-specific ONIE installer config files with rest of device-specific files * Merge contents of dell-s6000-replace-reboot.sh into s6000 installer conf file * Remove dell-s6000-replace-reboot.sh
1 parent 27dae90 commit 423a1ac

File tree

13 files changed

+15
-4
lines changed

13 files changed

+15
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Build system related
22
.platform
3-
.sku
43

54
# Build artifacts
65
fsroot/
@@ -39,3 +38,5 @@ dockers/docker-base/Dockerfile
3938
platform/*/docker-syncd-*/Dockerfile
4039
platform/*/docker-syncd-*-rpc/Dockerfile
4140

41+
# Installer-related files and directories
42+
installer/x86_64/platforms/

build_image.sh

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ if [ "$IMAGE_TYPE" = "onie" ]; then
2727
echo "Build ONIE installer"
2828
mkdir -p `dirname $OUTPUT_ONIE_IMAGE`
2929
sudo rm -f $OUTPUT_ONIE_IMAGE
30+
31+
# Copy platform-specific ONIE installer config files where onie-mk-demo.sh expects them
32+
rm -rf ./installer/x86_64/platforms/
33+
mkdir -p ./installer/x86_64/platforms/
34+
for VENDOR in `ls ./device`; do
35+
for PLATFORM in `ls ./device/$VENDOR`; do
36+
if [ -f ./device/$VENDOR/$PLATFORM/installer.conf ]; then
37+
cp ./device/$VENDOR/$PLATFORM/installer.conf ./installer/x86_64/platforms/$PLATFORM
38+
fi
39+
done
40+
done
41+
3042
## Generate an ONIE installer image
3143
## Note: Don't leave blank between lines. It is single line command.
3244
./onie-mk-demo.sh $TARGET_PLATFORM $TARGET_MACHINE $TARGET_PLATFORM-$TARGET_MACHINE-$ONIEIMAGE_VERSION \

installer/x86_64/dell-s6000-replace-reboot.sh device/dell/x86_64-dell_s6000_s1220-r0/installer.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="processor.max_cstate=1 intel_idle.max_cstate=0"
22

33
echo "Replace ONIE reboot with Dell reset commands"
44

installer/x86_64/platforms/x86_64-dell_s6000_s1220-r0

-2
This file was deleted.

0 commit comments

Comments
 (0)