Skip to content

Commit 1104a15

Browse files
author
Praveen Chaudhary
authored
Merge branch 'master' into ip6_ra_msft
2 parents ca7ea87 + 6f53047 commit 1104a15

14 files changed

Lines changed: 1016 additions & 327 deletions

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ CONFIGURED_ARCH ?= amd64
1212

1313
LINUX_HEADER_COMMON = linux-headers-$(KVERSION_SHORT)-common_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_all.deb
1414
LINUX_HEADER_AMD64 = linux-headers-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
15-
LINUX_IMAGE = linux-image-$(KVERSION)-unsigned_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
15+
ifeq ($(CONFIGURED_ARCH), armhf)
16+
LINUX_IMAGE = linux-image-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
17+
else
18+
LINUX_IMAGE = linux-image-$(KVERSION)-unsigned_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
19+
endif
1620

1721
MAIN_TARGET = $(LINUX_HEADER_COMMON)
1822
DERIVED_TARGETS = $(LINUX_HEADER_AMD64) $(LINUX_IMAGE)
@@ -95,7 +99,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
9599

96100
# Optionally add/remove kernel options
97101
if [ -f ../manage-config ]; then
98-
../manage-config $(CONFIGURED_ARCH)
102+
../manage-config $(CONFIGURED_ARCH) $(CONFIGURED_PLATFORM)
99103
fi
100104

101105
# Building a custom kernel from Debian kernel source

manage-config

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@
2525

2626
# Configuration file to change
2727
ARCH=amd64
28-
if [ $# = 1 ]; then
28+
PLATFORM=
29+
if [ $# -ge 1 ]; then
2930
ARCH=$1
3031
fi
32+
if [ $# -ge 2 ]; then
33+
PLATFORM=$2
34+
fi
3135
case "$ARCH" in
3236
amd64)
3337
CONFIG_FILE_LOC=debian/build/build_amd64_none_amd64
@@ -61,7 +65,7 @@ if [ -e ${exclusion_file} -o -e ${inclusion_file} ]; then
6165

6266
# Process any exclusions in the kernel
6367
if [ -f ${exclusion_file} ]; then
64-
exclusion_opts=$(get_section_opts ${exclusion_file} "common" ${ARCH})
68+
exclusion_opts=$(get_section_opts ${exclusion_file} "common" ${ARCH} ${PLATFORM})
6569
while read -r opt; do
6670
if [ ! -z "$opt" ] && [[ ! "$opt" =~ ^#.* ]]; then
6771
scripts/config --file ${CONFIG_FILE} -d $opt
@@ -71,7 +75,7 @@ if [ -e ${exclusion_file} -o -e ${inclusion_file} ]; then
7175

7276
# Process any inclusions in the kernel
7377
if [ -f ${inclusion_file} ]; then
74-
inclusion_opts=$(get_section_opts ${inclusion_file} "common" ${ARCH})
78+
inclusion_opts=$(get_section_opts ${inclusion_file} "common" ${ARCH} ${PLATFORM})
7579
while read -r opt; do
7680
if [ ! -z "$opt" ] && [[ ! "$opt" =~ ^#.* ]]; then
7781
echo $opt >> ${CONFIG_FILE}

patch/0001-arm64-default-config-for-sonic-patches.patch

Lines changed: 0 additions & 74 deletions
This file was deleted.

patch/0001-armhf-default-config-for-the-sonic-patches.patch

Lines changed: 0 additions & 82 deletions
This file was deleted.

patch/0042-Marvell-a385-Micron-4G-flash-support.patch

Lines changed: 0 additions & 41 deletions
This file was deleted.

patch/0042-armhf-additional-configs.patch

Lines changed: 0 additions & 89 deletions
This file was deleted.

patch/0042-armhf-proc-dma-kconfig.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)