You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+35-35Lines changed: 35 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -38,63 +38,63 @@ help:
38
38
@echo ''
39
39
@echo '$(GREEN)Build/Config:$(NC)'
40
40
@echo ' Targets:'
41
-
@echo ' linux (default) - builds the Linux kernel'
42
-
@echo ' linux_defconfig - builds the Linux kernel'
43
-
@echo ' linux_modules - builds the Linux kernel modules'
44
-
@echo ' ack - builds the Android Common Kernel'
45
-
@echo ' tools-vm - builds linux/tools/vm'
41
+
@echo ' linux (default) - Builds the Linux kernel'
42
+
@echo ' linux_defconfig - Builds the Linux kernel'
43
+
@echo ' linux_modules - Builds the Linux kernel modules'
44
+
@echo ' ack - Builds the Android Common Kernel'
45
+
@echo ' tools-vm - Builds linux/tools/vm'
46
46
@echo ''
47
47
@echo ' Environment Variables:'
48
-
@echo ' LINUX_DEFCONFIG - TODO'
49
-
@echo ' LINUX_SRC - TODO'
50
-
@echo ' LINUX_OUT - TODO'
51
-
@echo ' LINUX_CONFIG_FRAGMENT - TODO'
48
+
@echo ' LINUX_DEFCONFIG - The defconfig to use when building the kernel (default: defconfig, ACK default: gki_defconfig)'
49
+
@echo ' LINUX_SRC - The path to the kernel source directory (default: linux, ACK default: ack/common)'
50
+
@echo ' LINUX_OUT - The path where the kernel build output should be stored (default: out/linux/$$ARCH, ACK default: out/ack/common/$$ARCH)'
51
+
@echo ' LINUX_CONFIG_FRAGMENT - A kernel config fragment to merge with the defconfig (default: config/config.fragment, ACK default: config/config.fragment)'
52
52
@echo ''
53
53
@echo '$(GREEN)Clean:$(NC)'
54
54
@echo ' Targets:'
55
-
@echo ' clean - cleans output from default build targets'
56
-
@echo ' <target>_clean - cleans output for <target>'
55
+
@echo ' clean - Cleans output from default build targets'
56
+
@echo ' <target>_clean - Cleans output for <target>'
57
57
@echo ''
58
58
@echo '$(GREEN)Run/Debug:$(NC)'
59
59
@echo ' Targets:'
60
-
@echo ' run - run QEMU with the built kernel, bootloader, and rootfs image'
61
-
@echo ' run-ack - same as `run` but runs ACK instead'
60
+
@echo ' run - Run QEMU with the built kernel, bootloader, and rootfs image'
61
+
@echo ' run-ack - Same as `run` but runs ACK instead'
62
62
@echo ''
63
63
@echo ' Environment Variables:'
64
64
@echo ' GDB - Set to 1 to start a gdbserver and wait for GDB when running QEMU (default: 0)'
65
65
@echo ' CPU - Specify the number of CPUs to use when running QEMU (default: 4)'
66
66
@echo ' MEM - Specify the memory size in MB to use when running QEMU (default: 1024)'
67
67
@echo ' QEMU_EXTRA_ARGS - Specify additional arguments to pass to QEMU (default: "")'
68
68
@echo ' QEMU_EXTRA_KERNEL_CMDLINE - Specify additional arguments to pass to the kernel (default: "")'
69
-
@echo ' KERNEL_IMAGE - TODO'
70
-
@echo ' ROOTFS - TODO'
71
-
@echo ' ROOTFS_FORMAT - TODO'
72
-
@echo 'RDINIT - TODO'
73
-
@echo 'INITRD - TODO'
69
+
@echo ' KERNEL_IMAGE - The path to the kernel image to run (x86_64 default: $$LINUX_OUT/arch/$$ARCH/boot/bzImage, arm64 default: $$LINUX_OUT/arch/$$ARCH/boot/Image)'
70
+
@echo ' ROOTFS - The path to the rootfs image file (default: rootfs/rootfs-$$ARCH.img)'
71
+
@echo ' ROOTFS_FORMAT - The format of the rootfs image file (default: qcow2)'
72
+
@echo 'INITRD - The path to a gziped initramfs CPIO file to use instead of a rootfs image (default: "")'
73
+
@echo 'RDINIT - The value of the `rdinit` kernel command line paramter (default: "", default if INITRD is set: /sbin/init)'
74
74
@echo ''
75
75
@echo '$(GREEN)rootfs:$(NC)'
76
76
@echo ' Targets:'
77
-
@echo ' rootfs-init - TODO'
78
-
@echo ' rootfs - TODO'
79
-
@echo ' ext4 - TODO'
80
-
@echo ' cpio - TODO'
81
-
@echo ' rootfs-mount - TODO'
82
-
@echo ' rootfs-unmount - TODO'
77
+
@echo ' rootfs-init - Extracts the Alpine Linux rootfs to rootfs/alpine-$$ARCH, makes arch-specific changes, and builds a rootfs image at rootfs/alpine-$$ARCH.img'
78
+
@echo ' rootfs - An alias for the `ext4` target'
79
+
@echo ' ext4 - Builds a QCOW2 rootfs image at rootfs/alpine-$$ARCH.img with an ext4 filesystem'
80
+
@echo ' cpio - Builds a gziped initramfs CPIO file from the $$INITRAMFS_DIR directory'
81
+
@echo ' rootfs-mount - Mount rootfs image at /tmp/rootfs'
82
+
@echo ' rootfs-unmount - Unmount rootfs image'
83
83
@echo ''
84
84
@echo ' Environment Variables:'
85
-
@echo ' EXT4_SIZE - TODO'
86
-
@echo ' INITRAMFS_DIR - TODO'
87
-
@echo 'ROOTFS - TODO'
88
-
@echo 'ROOTFS_DIR- TODO'
89
-
@echo ' ROOTFS_FORMAT - TODO'
85
+
@echo ' EXT4_SIZE - The disk size of the rootfs image to build'
86
+
@echo ' INITRAMFS_DIR - The directory to create the initramfs from (default: rootfs/alpine-$$ARCH)'
87
+
@echo 'ROOTFS_DIR- The directory to create the ext4/rootfs image from (default: rootfs/alpine-$$ARCH)'
88
+
@echo 'ROOTFS - The path to the rootfs image file (default: rootfs/rootfs-$$ARCH.img)'
89
+
@echo ' ROOTFS_FORMAT - The format of the rootfs image file (default: qcow2)'
90
90
@echo ''
91
91
@echo '$(GREEN)Miscellaneous:$(NC)'
92
92
@echo ' Targets:'
93
-
@echo ' linux_download - TODO'
94
-
@echo ' linux_checkout - TODO'
93
+
@echo ' linux_download - Downloads an archive of the Linux kernel source for the version specified in $$VERSION'
94
+
@echo ' linux_checkout - Checks out the version specified by $$VERSION of the linux kernel in $$LINUX_SRC'
95
95
@echo ''
96
96
@echo ' Environment Variables:'
97
-
@echo ' VERSION - TODO'
97
+
@echo " VERSION - The version to download or checkout. For checkout only, if the third number in the version string is a 'y', the latest version of the kernel with that major and minor version is used. Examples: 5.10, 5.10.107, v5.10, 5.10.y, linux-5.10.y"
98
98
99
99
$(SHARED_DIR):
100
100
mkdir -p $(SHARED_DIR)
@@ -115,9 +115,9 @@ endif
115
115
116
116
# If we're building ACK instead of Linux, set the appropriate variables
0 commit comments