On Thu May 22, 2025 at 3:51 PM CEST, Marcus Hähnel wrote: > Hi, > > On 2025-05-22 15:25, Tianhao Wang wrote: >> How to do the same when the new package is defined outside of the l4re >> tree, which is recommended by the docs? e.g. >> >> l4re-snapshot # make setup && make >> ├── obj >> │ ├── fiasco >> │ └── l4 >> │ └── x86 # the l4 build dir >> └── src >> ├── fiasco >> └── l4 # make O=<obj/l4/x86> oldconfig >> >> mypkg # make O=<obj/l4/x86> ---> ERROR >> ├── Control >> ├── main.c >> └── Makefile >> > > Packages that are outside the L4Re source tree are, by default, already > excluded from the Control file consistency check since the concept of > build order doesn't make much sense for packages that are built in > isolation. So that error should not happen there. What is the error you > see? Did you set the L4DIR correctly (which is required for the package > to find the L4Re buildsystem)?
So in this case the Control file should not be needed right? Here is the Makefile: ``` PKGDIR ?= . L4DIR ?= /path/to/l4re-snapshot-25.03.0/src/l4 TARGET = myfirstprogram SRC_C = main.c include $(L4DIR)/mk/prog.mk ``` build commands and error ``` # in snapshot root: make setup make # in /tmp/testpkg/ make O=PATH/TO/OBJ/L4 # error (same as before) path/to/src/l4/mk/binary.inc:396: *** /tmp/testpkg/Makefile: 'stdlibs compiler-rt' in REQUIRES_LIBS in Makefile but not in Control file requires. Stop. make: *** [/path/to/l4re-snapshot-25.03.0/src/l4/mk/binary.inc:195: /path/to/l4re-snapshot-25.03.0/obj/l4/x86/ext-pkg/tmp/testpkg/OBJ-x86_gen-std-l4f] Error 2 ``` cheers wth -- wth 220F 6A50 7BEF 8C33 3B4A 4404 99DE B3B4 1583 4AEF _______________________________________________ l4-hackers mailing list -- [email protected] To unsubscribe send an email to [email protected]
