From fc8036a95a3fea0a1cf9dfb17d3faf0050277959 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 10 Sep 2020 22:09:54 -0500 Subject: [PATCH] Update: add and example fakefile that compiles the Linux kernel using "GNU Make". The Featureless Make program can be used beyond its intended purpose. This provides an example of such. As this product is open-source, I love to emphasize the freedom others have to take this and do as they would. Hack away! --- .../data/build/fakefile-example-linux_using_make | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 level_3/fake/data/build/fakefile-example-linux_using_make diff --git a/level_3/fake/data/build/fakefile-example-linux_using_make b/level_3/fake/data/build/fakefile-example-linux_using_make new file mode 100644 index 0000000..1417a82 --- /dev/null +++ b/level_3/fake/data/build/fakefile-example-linux_using_make @@ -0,0 +1,41 @@ +# fss-0005 iki-0002 +# +# This is designed for the linux kernel source, probably some version of 5.x. +# This is intended to show that the functionality provided can go beyond the intended use, such as calling other build systems. +# +# This assumes make and everything necessary to compile the linux kernel is available. +# +# To use this example do the following: +# 1) download and extract the linux source, such as linux-5.8.8. +# 2) change into the extracted source (linux-5.8.8) directory. +# 3) run using this, such as: "fake make -f /path/to/fakefile-example-bzip2". + +settings: + load_build no + fail exit + + # add any desired environment variables here to expose to the run/shell environment. + environment PATH + + # config can be set to any valid config option, such as: menuconfig, nconfig, xconfig, gconfig, oldconfig, olddefconfig, defconfig, etc... + parameter config defconfig + +main: + + print + print Cleaning Linux kernel source. + run make mrproper + + print + print Generating Linux config 'parameter:"config"'. + run make parameter:"config" + + print + print Making Linux. + run make + + operate done + +done: + print + print The Linux kernel has successfully compiled. -- 1.8.3.1