linux/linux*.mk: fix code style
Use only one space before backslash. Remove consecutive empty line. Indent with tabs. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
50e64863e1
commit
0b0d93fe70
@ -20,8 +20,8 @@ endif
|
|||||||
define RTAI_PREPARE_KERNEL
|
define RTAI_PREPARE_KERNEL
|
||||||
kver=`$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelversion` ; \
|
kver=`$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelversion` ; \
|
||||||
if test -f $(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/hal-linux-$${kver}-*patch ; then \
|
if test -f $(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/hal-linux-$${kver}-*patch ; then \
|
||||||
$(APPLY_PATCHES) $(LINUX_DIR) \
|
$(APPLY_PATCHES) $(LINUX_DIR) \
|
||||||
$(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/ \
|
$(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/ \
|
||||||
hal-linux-$${kver}-*patch ; \
|
hal-linux-$${kver}-*patch ; \
|
||||||
else \
|
else \
|
||||||
echo "No RTAI patch for your kernel version" ; \
|
echo "No RTAI patch for your kernel version" ; \
|
||||||
|
@ -371,11 +371,11 @@ endif
|
|||||||
# configuration has changed.
|
# configuration has changed.
|
||||||
define LINUX_BUILD_CMDS
|
define LINUX_BUILD_CMDS
|
||||||
@for dts in $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)); do \
|
@for dts in $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)); do \
|
||||||
cp -f $${dts} $(KERNEL_ARCH_PATH)/boot/dts/ ; \
|
cp -f $${dts} $(KERNEL_ARCH_PATH)/boot/dts/ ; \
|
||||||
done
|
done
|
||||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)
|
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)
|
||||||
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
||||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
|
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
|
||||||
fi
|
fi
|
||||||
$(LINUX_BUILD_DTB)
|
$(LINUX_BUILD_DTB)
|
||||||
$(LINUX_APPEND_DTB)
|
$(LINUX_APPEND_DTB)
|
||||||
@ -405,15 +405,14 @@ endif
|
|||||||
|
|
||||||
define LINUX_INSTALL_HOST_TOOLS
|
define LINUX_INSTALL_HOST_TOOLS
|
||||||
# Installing dtc (device tree compiler) as host tool, if selected
|
# Installing dtc (device tree compiler) as host tool, if selected
|
||||||
if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
|
if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
|
||||||
$(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/bin/linux-dtc ; \
|
$(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/bin/linux-dtc ; \
|
||||||
if [ ! -e $(HOST_DIR)/bin/dtc ]; then \
|
if [ ! -e $(HOST_DIR)/bin/dtc ]; then \
|
||||||
ln -sf linux-dtc $(HOST_DIR)/bin/dtc ; \
|
ln -sf linux-dtc $(HOST_DIR)/bin/dtc ; \
|
||||||
fi \
|
fi \
|
||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define LINUX_INSTALL_IMAGES_CMDS
|
define LINUX_INSTALL_IMAGES_CMDS
|
||||||
$(call LINUX_INSTALL_IMAGE,$(BINARIES_DIR))
|
$(call LINUX_INSTALL_IMAGE,$(BINARIES_DIR))
|
||||||
$(call LINUX_INSTALL_DTB,$(BINARIES_DIR))
|
$(call LINUX_INSTALL_DTB,$(BINARIES_DIR))
|
||||||
@ -427,10 +426,10 @@ define LINUX_INSTALL_TARGET_CMDS
|
|||||||
$(LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET)
|
$(LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET)
|
||||||
# Install modules and remove symbolic links pointing to build
|
# Install modules and remove symbolic links pointing to build
|
||||||
# directories, not relevant on the target
|
# directories, not relevant on the target
|
||||||
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
||||||
$(LINUX_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) modules_install; \
|
$(LINUX_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) modules_install; \
|
||||||
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \
|
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \
|
||||||
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \
|
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \
|
||||||
fi
|
fi
|
||||||
$(LINUX_INSTALL_HOST_TOOLS)
|
$(LINUX_INSTALL_HOST_TOOLS)
|
||||||
endef
|
endef
|
||||||
@ -485,7 +484,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT):$(strip $(KERNEL_DTS_NAME)),y:)
|
ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT):$(strip $(KERNEL_DTS_NAME)),y:)
|
||||||
$(error No kernel device tree source specified, check your \
|
$(error No kernel device tree source specified, check your \
|
||||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME / BR2_LINUX_KERNEL_CUSTOM_DTS_PATH settings)
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME / BR2_LINUX_KERNEL_CUSTOM_DTS_PATH settings)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif # BR_BUILDING
|
endif # BR_BUILDING
|
||||||
|
Loading…
Reference in New Issue
Block a user