generic: mtd: backport SPI_NOR_HAS_LOCK
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 331-arc-remove-dependency-on-DEVTMPFS.patch
1 From adfbf9e6cad93281cffceab078e7f6f2a8e094f9 Mon Sep 17 00:00:00 2001
2 From: Alexey Brodkin <abrodkin@synopsys.com>
3 Date: Thu, 13 Aug 2015 01:56:02 +0300
4 Subject: [PATCH 1/2] openwrt: arc - remove dependency on DEVTMPFS
5
6 OpenWRT builds initramfs so that it doesn't require DEVTMPFS so dropping
7 this dependency. That helps to escape 2 separate kernel rebuilds with
8 and without initramfs.
9
10 2 builds happen because OpenWRT first builds kernel and later modules.
11 When building entire kernel with simple "make" INITRAMFS sets to a real
12 value and so was triggering DEVTMPFS selection. Then when building only
13 modules with "make modules" command INITRAMFS is zeroed and so kernel
14 config was changing that lead to full kernel rebuild.
15
16 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
17 ---
18 arch/arc/Kconfig | 2 --
19 1 file changed, 2 deletions(-)
20
21 --- a/arch/arc/Kconfig
22 +++ b/arch/arc/Kconfig
23 @@ -12,8 +12,6 @@ config ARC
24 select BUILDTIME_EXTABLE_SORT
25 select COMMON_CLK
26 select CLONE_BACKWARDS
27 - # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
28 - select DEVTMPFS if !INITRAMFS_SOURCE=""
29 select GENERIC_ATOMIC64
30 select GENERIC_CLOCKEVENTS
31 select GENERIC_FIND_FIRST_BIT