@@ -224,10 +224,9 @@ module 8123.ko, which is built from the following files::
224
224
3.2 Separate Kbuild File and Makefile
225
225
-------------------------------------
226
226
227
- In newer versions of the kernel, kbuild will first look for a
228
- file named "Kbuild," and only if that is not found, will it
229
- then look for a makefile. Utilizing a "Kbuild" file allows us
230
- to split up the makefile from example 1 into two files:
227
+ Kbuild will first look for a file named "Kbuild", and if it is not
228
+ found, it will then look for "Makefile". Utilizing a "Kbuild" file
229
+ allows us to split up the "Makefile" from example 1 into two files:
231
230
232
231
Example 2::
233
232
@@ -250,37 +249,6 @@ module 8123.ko, which is built from the following files::
250
249
consisting of several hundred lines, and here it really pays
251
250
off to separate the kbuild part from the rest.
252
251
253
- The next example shows a backward compatible version.
254
-
255
- Example 3::
256
-
257
- --> filename: Kbuild
258
- obj-m := 8123.o
259
- 8123-y := 8123_if.o 8123_pci.o 8123_bin.o
260
-
261
- --> filename: Makefile
262
- ifneq ($(KERNELRELEASE),)
263
- # kbuild part of makefile
264
- include Kbuild
265
-
266
- else
267
- # normal makefile
268
- KDIR ?= /lib/modules/`uname -r`/build
269
-
270
- default:
271
- $(MAKE) -C $(KDIR) M=$$PWD
272
-
273
- # Module specific targets
274
- genbin:
275
- echo "X" > 8123_bin.o_shipped
276
-
277
- endif
278
-
279
- Here the "Kbuild" file is included from the makefile. This
280
- allows an older version of kbuild, which only knows of
281
- makefiles, to be used when the "make" and kbuild parts are
282
- split into separate files.
283
-
284
252
3.3 Binary Blobs
285
253
----------------
286
254
0 commit comments