From nobody Fri Aug 27 11:02:59 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7D6F5179FB5F for ; Fri, 27 Aug 2021 11:02:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gwxdb34glz4Z2x for ; Fri, 27 Aug 2021 11:02:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4C78722242 for ; Fri, 27 Aug 2021 11:02:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 17RB2xmL038517 for ; Fri, 27 Aug 2021 11:02:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17RB2xB1038516 for bugs@FreeBSD.org; Fri, 27 Aug 2021 11:02:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 258081] opt_platform.h always created empty on kmod build Date: Fri, 27 Aug 2021 11:02:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mishin@mh.net.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258081 Bug ID: 258081 Summary: opt_platform.h always created empty on kmod build Product: Base System Version: 13.0-STABLE Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: mishin@mh.net.ru Running "make depend" in a kernel module sources folder outside of the kern= el sources tree makes an empty "./opt_platform.h". I expect it to contain the lines "#define FDT 1" and "#define EFI 1" which are contained in "/usr/obj/arm.armv7/sys/${KERNCONF}/opt_platform.h". My "Makefile": # $FreeBSD$ KMOD=3Drcrecv SRCS=3Drcrecv.c SRCS+=3D \ bus_if.h \ device_if.h \ gpio_if.h \ gpiobus_if.h \ ofw_bus_if.h \ opt_platform.h \ fdt_pinctrl_if.h \ CFLAGS+=3D -I. .include Maybe it is important: I always mount on my ARM host "/usr/src" for building kernel modules by nfs but I have not mounted "/usr/obj" there. I tried also run "make TARGET_ARCH=3Darmv7 KERNCONF=3DOPI_PC depend" on amd= 64 PC (I build world & kernel for my OrangePI PC, on amd64 and with that variables, = and "/usr/obj/arm.armv7/sys/${KERNCONF}/opt_platform.h" is exists and is not empty). But the "./opt_platform.h" created empty in this case too. This is an output of the command I run (I don't got what ":>" means): machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/gpio/gpio_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/gpio/gpiobus_if.m= -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/ofw/ofw_bus_if.m = -h :> opt_platform.h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/fdt/fdt_pinctrl_i= f.m -h touch opt_global.h Of course I can place a definition of FDT to the code, to the Makefile or e= ven to the "./opt_platform.h" file but I want to make it more platform dependen= t. Is it a bug or maybe I misunderstand this step of making kmods? --=20 You are receiving this mail because: You are the assignee for the bug.=