From 8d4e31c9443c8e21354fbd9d356e88fc1267296c Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 19 Sep 2023 09:51:23 -0500 Subject: [PATCH] linux: config: add a date-stamp Signed-off-by: Robert Nelson --- 04_build_linux.sh | 4 ++++ build_linux_menuconfig.sh | 4 ++++ patches/linux/mpfs_defconfig | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/04_build_linux.sh b/04_build_linux.sh index 8472d53..2b555ab 100755 --- a/04_build_linux.sh +++ b/04_build_linux.sh @@ -39,6 +39,8 @@ if [ -f arch/riscv/configs/mpfs_defconfig ] ; then echo "make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig" make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig + ./scripts/config --set-str CONFIG_LOCALVERSION "-$(date +%Y%M%d)" + echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig" make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig else @@ -117,6 +119,8 @@ else ./scripts/config --enable CONFIG_NLS_ISO8859_1 ./scripts/config --enable CONFIG_BLK_DEV_DM + ./scripts/config --set-str CONFIG_LOCALVERSION "-$(date +%Y%M%d)" + echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig" make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig fi diff --git a/build_linux_menuconfig.sh b/build_linux_menuconfig.sh index 3f82f19..c82442b 100755 --- a/build_linux_menuconfig.sh +++ b/build_linux_menuconfig.sh @@ -39,6 +39,8 @@ if [ -f arch/riscv/configs/mpfs_defconfig ] ; then echo "make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig" make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig + ./scripts/config --set-str CONFIG_LOCALVERSION "-$(date +%Y%M%d)" + echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig" make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig else @@ -117,6 +119,8 @@ else ./scripts/config --enable CONFIG_NLS_ISO8859_1 ./scripts/config --enable CONFIG_BLK_DEV_DM + ./scripts/config --set-str CONFIG_LOCALVERSION "-$(date +%Y%M%d)" + echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig" make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig fi diff --git a/patches/linux/mpfs_defconfig b/patches/linux/mpfs_defconfig index df8a2d9..90f0783 100644 --- a/patches/linux/mpfs_defconfig +++ b/patches/linux/mpfs_defconfig @@ -26,7 +26,7 @@ CONFIG_THREAD_INFO_IN_TASK=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set # CONFIG_WERROR is not set -CONFIG_LOCALVERSION="" +CONFIG_LOCALVERSION="-20234919" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_BUILD_SALT="" CONFIG_DEFAULT_INIT=""