summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-05-31 15:28:25 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-15 19:07:52 +0300
commitfb3f7f0f156a111da7d43f6ffe52b48bac5b7159 (patch)
treefcdfdb72abf452fbfb17c012c58e93c3975bce14 /usr
parent256abd8e550ce977b728be79a74e1729438b4948 (diff)
downloadlinux-fb3f7f0f156a111da7d43f6ffe52b48bac5b7159.tar.xz
initramfs: shorten cmd_initfs in usr/Makefile
Avoid repetition of long variables. No functional change intended. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'usr')
-rw-r--r--usr/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/Makefile b/usr/Makefile
index 132ef7e96e6d..f1779496bca7 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -62,8 +62,8 @@ $(deps_initramfs): ;
quiet_cmd_initfs = GEN $@
cmd_initfs = \
$(CONFIG_SHELL) $< -o $@ -l $(obj)/.initramfs_data.cpio.d \
- $(if $(CONFIG_INITRAMFS_ROOT_UID), -u $(CONFIG_INITRAMFS_ROOT_UID)) \
- $(if $(CONFIG_INITRAMFS_ROOT_GID), -g $(CONFIG_INITRAMFS_ROOT_GID)) \
+ $(addprefix -u , $(CONFIG_INITRAMFS_ROOT_UID)) \
+ $(addprefix -g , $(CONFIG_INITRAMFS_ROOT_GID)) \
$(if $(KBUILD_BUILD_TIMESTAMP), -d "$(KBUILD_BUILD_TIMESTAMP)") \
$(ramfs-input)