Skip to content

2605.5.0 building kernel modules doesn't work #195

@endzyme

Description

@endzyme

Description

Broken makefile in build/ stops the ability to build modules which use --with-linux-obj=/usr/lib64/modules/5.4.66-flatcar/build.

See 2512.5.0 in /usr/lib64/modules/5.4.66-flatcar/build/Makefile vs 2605.5.0:

2512.5.0

# Automatically generated by ../source/scripts/mkmakefile: don't edit

VERSION = 4
PATCHLEVEL = 19

lastword = $(word $(words $(1)),$(1))
makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))

ifeq ("$(origin V)", "command line")
VERBOSE := $(V)
endif
ifneq ($(VERBOSE),1)
Q := @
endif

MAKEARGS := -C ../source
MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))

MAKEFLAGS += --no-print-directory

.PHONY: __sub-make $(MAKECMDGOALS)

__sub-make:
	$(Q)$(MAKE) $(MAKEARGS) $(MAKECMDGOALS)

$(filter-out __sub-make, $(MAKECMDGOALS)): __sub-make
	@:

2605.5.0

# Automatically generated by /build/amd64-usr/var/tmp/portage/sys-kernel/coreos-modules-5.4.66/work/coreos-modules-5.4.66/source/scripts/mkmakefile: don't edit
include /build/amd64-usr/var/tmp/portage/sys-kernel/coreos-modules-5.4.66/work/coreos-modules-5.4.66/source/Makefile

/build/amd64-usr/var/tmp/portage/sys-kernel/coreos-modules-5.4.66/work/coreos-modules-5.4.66/source doesn't exist..

I was able to get builds working by changing the Makefile to use include /usr/lib64/modules/5.4.66-flatcar/source/Makefile

Impact

Can't build kernel modules

Environment and steps to reproduce

  1. Set-up: wget both the 2605.5.0 and the 2512.5.0 developer developer containers, and try to compile a module which uses --with-linux-obj=...

Expected behavior
Worked previously

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions