29d9bff8a4ddd32a6f6512177d3968d9f8176bc3
[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 diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
22 index 6312f60..a95bab3 100644
23 --- a/arch/arc/Kconfig
24 +++ b/arch/arc/Kconfig
25 @@ -12,8 +12,6 @@ config ARC
26         select BUILDTIME_EXTABLE_SORT
27         select COMMON_CLK
28         select CLONE_BACKWARDS
29 -       # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
30 -       select DEVTMPFS if !INITRAMFS_SOURCE=""
31         select GENERIC_ATOMIC64
32         select GENERIC_CLOCKEVENTS
33         select GENERIC_FIND_FIRST_BIT
34 -- 
35 2.4.3
36