aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-02 19:12:10 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-02 19:12:15 +0100
commit1836f009172a248e087fcb15bbd2c549094073a5 (patch)
tree835cfd14c525d5ae9ea7850aa3641c3611879ac0
parent1bcb406bbc99d557e3d27c3d6473348f5196f0bc (diff)
add linux kernel (WIP)
-rw-r--r--.gitmodules6
m---------kernel0
-rw-r--r--makefile6
3 files changed, 12 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 4538f40..b17d981 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,9 @@
[submodule "u-boot"]
path = u-boot
url = https://source.denx.de/u-boot/u-boot.git
+ shallow = true
+[submodule "kernel"]
+ path = kernel
+ url = https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
+# url = https://github.com/beagleboard/linux
+ shallow = true
diff --git a/kernel b/kernel
new file mode 160000
+Subproject 6764c317b6bb91bd806ef79adf6d9c0e428b191
diff --git a/makefile b/makefile
index d692d93..6b4ce78 100644
--- a/makefile
+++ b/makefile
@@ -31,6 +31,7 @@ container_img: Containerfile
# this list holds the .git files in each submodule folder (add
# $(SUBMODULE_INIT) as prerequisite to require the submodules to exist)
SUBMODULE_INIT += ./u-boot/.git
+SUBMODULE_INIT += ./kernel/.git
$(SUBMODULE_INIT):
$(GIT) submodule init
$(GIT) submodule update
@@ -40,6 +41,11 @@ os_bootloader: $(SUBMODULE_INIT)
$(CTRIZE) $(MAKE) -$(MAKEFLAGS) -C u-boot am335x_evm_config
$(CTRIZE) $(MAKE) -$(MAKEFLAGS) -C u-boot
+.PHONY: os_kernel
+os_kernel:
+ $(CTRIZE) $(MAKE) -$(MAKEFLAGS) -C kernel omap2plus_defconfig
+ $(CTRIZE) $(MAKE) -$(MAKEFLAGS) -C kernel
+
# sd card block device prefix (assumed partition numbers, see readme.md)
# SDCARD_BD_PREFIX := /dev/sdc
SDCARD_BD_PREFIX := /dev/mmcblk0p