Skip to content

Commit

Permalink
Sfos changes
Browse files Browse the repository at this point in the history
Change-Id: Ia08ab5efe62466fb12e97584c52bf463680314d5
  • Loading branch information
Michal-Szczepaniak committed Aug 31, 2019
1 parent db0d098 commit f8064cf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 72 deletions.
22 changes: 12 additions & 10 deletions arch/arm64/configs/Z01R_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ CONFIG_LOCALVERSION="-perf"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
# CONFIG_SYSVIPC is not set
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
CONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_FHANDLE is not set
CONFIG_FHANDLE=y
# CONFIG_USELIB is not set
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
Expand Down Expand Up @@ -1181,7 +1181,8 @@ CONFIG_ARM_AMBA=y
#
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
Expand Down Expand Up @@ -1499,7 +1500,7 @@ CONFIG_NETDEVICES=y
CONFIG_MII=y
CONFIG_NET_CORE=y
CONFIG_BONDING=y
CONFIG_DUMMY=y
CONFIG_DUMMY=n
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
Expand Down Expand Up @@ -2083,7 +2084,7 @@ CONFIG_SERIO_LIBPS2=y
# Character devices
#
CONFIG_TTY=y
# CONFIG_VT is not set
CONFIG_VT=y
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
# CONFIG_SERIAL_NONSTANDARD is not set
Expand Down Expand Up @@ -3670,8 +3671,9 @@ CONFIG_USB_F_ACC=y
CONFIG_USB_F_DIAG=y
CONFIG_USB_F_CDEV=y
CONFIG_USB_F_CCID=y
CONFIG_USB_F_GSI=y
CONFIG_USB_F_GSI=n
CONFIG_USB_F_QDSS=y
CONFIG_USB_F_RNDIS=y
CONFIG_USB_CONFIGFS=y
# CONFIG_USB_CONFIGFS_SERIAL is not set
# CONFIG_USB_CONFIGFS_ACM is not set
Expand All @@ -3680,7 +3682,7 @@ CONFIG_USB_CONFIGFS_NCM=y
# CONFIG_USB_CONFIGFS_ECM is not set
# CONFIG_USB_CONFIGFS_ECM_SUBSET is not set
# CONFIG_USB_CONFIGFS_QCRNDIS is not set
# CONFIG_USB_CONFIGFS_RNDIS is not set
CONFIG_USB_CONFIGFS_RNDIS=y
# CONFIG_USB_CONFIGFS_EEM is not set
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
# CONFIG_USB_CONFIGFS_F_LB_SS is not set
Expand All @@ -3699,7 +3701,7 @@ CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_USB_CONFIGFS_F_DIAG=y
CONFIG_USB_CONFIGFS_F_CDEV=y
CONFIG_USB_CONFIGFS_F_CCID=y
CONFIG_USB_CONFIGFS_F_GSI=y
CONFIG_USB_CONFIGFS_F_GSI=n
CONFIG_USB_CONFIGFS_F_QDSS=y
# CONFIG_USB_LED_TRIG is not set
# CONFIG_USB_ULPI_BUS is not set
Expand Down Expand Up @@ -4961,7 +4963,7 @@ CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
CONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
# CONFIG_VIRTUALIZATION is not set

Expand Down Expand Up @@ -5199,7 +5201,7 @@ CONFIG_HARDENED_USERCOPY=y
# CONFIG_HARDENED_USERCOPY_PAGESPAN is not set
CONFIG_FORTIFY_SOURCE=y
CONFIG_SECURITY_SELINUX=y
# CONFIG_SECURITY_SELINUX_BOOTPARAM is not set
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
# CONFIG_SECURITY_SELINUX_DISABLE is not set
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/function/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ usb_f_cdev-y := f_cdev.o
obj-$(CONFIG_USB_F_CDEV) += usb_f_cdev.o
usb_f_ccid-y := f_ccid.o
obj-$(CONFIG_USB_F_CCID) += usb_f_ccid.o
usb_f_gsi-y := f_gsi.o rndis.o
usb_f_gsi-y := f_gsi.o
obj-$(CONFIG_USB_F_GSI) += usb_f_gsi.o
usb_f_qdss-y := f_qdss.o u_qdss.o
obj-$(CONFIG_USB_F_QDSS) += usb_f_qdss.o
Expand Down
32 changes: 0 additions & 32 deletions include/linux/initramfs.h

This file was deleted.

3 changes: 3 additions & 0 deletions init/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
ccflags-y := -fno-function-sections -fno-data-sections

obj-y := main.o version.o mounts.o
ifneq ($(CONFIG_BLK_DEV_INITRD),y)
obj-y += noinitramfs.o
else
obj-$(CONFIG_BLK_DEV_INITRD) += initramfs.o
endif
obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o

ifneq ($(CONFIG_ARCH_INIT_TASK),y)
Expand Down
22 changes: 1 addition & 21 deletions init/initramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/dirent.h>
#include <linux/syscalls.h>
#include <linux/utime.h>
#include <linux/initramfs.h>
#include <linux/file.h>

static ssize_t __init xwrite(int fd, const char *p, size_t count)
Expand Down Expand Up @@ -607,28 +606,9 @@ static void __init clean_rootfs(void)
}
#endif

static int __initdata do_skip_initramfs;

static int __init skip_initramfs_param(char *str)
{
if (*str)
return 0;
do_skip_initramfs = 1;
return 1;
}
__setup("skip_initramfs", skip_initramfs_param);

static int __init populate_rootfs(void)
{
char *err;

if (do_skip_initramfs) {
if (initrd_start)
free_initrd();
return default_rootfs();
}

err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
if (err)
panic("%s", err); /* Failed to decompress INTERNAL initramfs */
if (initrd_start) {
Expand Down
9 changes: 1 addition & 8 deletions init/noinitramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@
#include <linux/stat.h>
#include <linux/kdev_t.h>
#include <linux/syscalls.h>
#include <linux/kconfig.h>
#include <linux/initramfs.h>

/*
* Create a simple rootfs that is similar to the default initramfs
*/
#if !IS_BUILTIN(CONFIG_BLK_DEV_INITRD)
static
#endif
int __init default_rootfs(void)
static int __init default_rootfs(void)
{
int err;

Expand All @@ -54,6 +49,4 @@ int __init default_rootfs(void)
printk(KERN_WARNING "Failed to create a rootfs\n");
return err;
}
#if !IS_BUILTIN(CONFIG_BLK_DEV_INITRD)
rootfs_initcall(default_rootfs);
#endif

0 comments on commit f8064cf

Please sign in to comment.