Mercurial > hg > aboriginal
comparison system-image.sh @ 1827:c7b90f8d1b80 draft
Save mini.config used to build kernel into system image tarball.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 09 Dec 2015 15:29:23 -0600 |
parents | 893e70efe047 |
children |
comparison
equal
deleted
inserted
replaced
1826:1ba206595781 | 1827:c7b90f8d1b80 |
---|---|
105 | 105 |
106 if is_newer "$STAGE_DIR/linux" "$BUILD/root-filesystem-$ARCH" \ | 106 if is_newer "$STAGE_DIR/linux" "$BUILD/root-filesystem-$ARCH" \ |
107 $(package_cache linux) | 107 $(package_cache linux) |
108 then | 108 then |
109 setupfor linux | 109 setupfor linux |
110 getconfig linux > mini.conf | 110 echo "# make allnoconfig ARCH=${BOOT_KARCH:-$KARCH} KCONFIG_ALLCONFIG=mini.config" \ |
111 > $STAGE_DIR/mini.config | |
112 getconfig linux >> "$STAGE_DIR"/mini.config | |
111 [ "$SYSIMAGE_TYPE" == rootfs ] && | 113 [ "$SYSIMAGE_TYPE" == rootfs ] && |
112 echo -e "CONFIG_INITRAMFS_SOURCE=\"$STAGE_DIR/rootfs.cpio.gz\"\n" \ | 114 echo -e "CONFIG_INITRAMFS_SOURCE=\"$STAGE_DIR/rootfs.cpio.gz\"\n" \ |
113 >> mini.conf | 115 >> "$STAGE_DIR"/mini.config |
114 make ARCH=${BOOT_KARCH:-$KARCH} $LINUX_FLAGS KCONFIG_ALLCONFIG=mini.conf \ | 116 make allnoconfig ARCH=${BOOT_KARCH:-$KARCH} $LINUX_FLAGS \ |
115 allnoconfig >/dev/null && | 117 KCONFIG_ALLCONFIG="$STAGE_DIR"/mini.config >/dev/null && |
116 make -j $CPUS ARCH=${BOOT_KARCH:-$KARCH} $DO_CROSS $LINUX_FLAGS $VERBOSITY && | 118 make -j $CPUS ARCH=${BOOT_KARCH:-$KARCH} $DO_CROSS $LINUX_FLAGS $VERBOSITY && |
117 cp "$KERNEL_PATH" "$STAGE_DIR/linux" | 119 cp "$KERNEL_PATH" "$STAGE_DIR/linux" |
118 cleanup | 120 cleanup |
119 fi | 121 fi |
120 | 122 |