From 1836f009172a248e087fcb15bbd2c549094073a5 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 2 Feb 2024 19:12:10 +0100 Subject: add linux kernel (WIP) --- .gitmodules | 6 ++++++ kernel | 1 + makefile | 6 ++++++ 3 files changed, 13 insertions(+) create mode 160000 kernel 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 index 0000000..6764c31 --- /dev/null +++ b/kernel @@ -0,0 +1 @@ +Subproject commit 6764c317b6bb91bd806ef79adf6d9c0e428b191e 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 -- cgit v1.2.3