Discussion:
Refresh my memory make release with a custom kernel
(too old to reply)
Mark Saad
2018-06-20 12:44:19 UTC
Permalink
Hi all
I can’t remember and I havent been able to find the right option to make a release with a custom kernel config .

I did
make buildworld
make buildkernel KERNCONF=SUPERDOOPER
cd release
make release KERNEL=SUPERDOOPER
make install DESTDIR=/export/build/sd

The resulting kernel was a generic not my custom . What am I forgetting?

---
Mark Saad | ***@longcount.org
Igor V. Ruzanov
2018-06-20 13:08:58 UTC
Permalink
On Wed, 20 Jun 2018, Mark Saad wrote:

|Hi all
| I can’t remember and I havent been able to find the right option to make a release with a custom kernel config .
|
|I did
|make buildworld
|make buildkernel KERNCONF=SUPERDOOPER
I usually run `make installkernel KERNCONF=SUPERDOOPER`, then reboot and
`make installworld` after kernel building step.

|cd release
|make release KERNEL=SUPERDOOPER
|make install DESTDIR=/export/build/sd
|
|The resulting kernel was a generic not my custom . What am I forgetting?
|
|---
|Mark Saad | ***@longcount.org
|_______________________________________________
|freebsd-***@freebsd.org mailing list
|https://lists.freebsd.org/mailman/listinfo/freebsd-questions
|To unsubscribe, send any mail to "freebsd-questions-***@freebsd.org"
|
Mark Saad
2018-06-20 17:26:34 UTC
Permalink
Igor
That did not work, the resulting kernel was still a GENERIC . For a
work around
I am just going to tar up /boot/kernel into my own kernel.txz. This is
on 11.2-SATBLE/PRERELEASE



On Wed, Jun 20, 2018 at 9:08 AM, Igor V. Ruzanov
Post by Igor V. Ruzanov
|Hi all
| I can’t remember and I havent been able to find the right option to make a release with a custom kernel config .
|
|I did
|make buildworld
|make buildkernel KERNCONF=SUPERDOOPER
I usually run `make installkernel KERNCONF=SUPERDOOPER`, then reboot and
`make installworld` after kernel building step.
|cd release
|make release KERNEL=SUPERDOOPER
|make install DESTDIR=/export/build/sd
|
|The resulting kernel was a generic not my custom . What am I forgetting?
|
|---
|_______________________________________________
|https://lists.freebsd.org/mailman/listinfo/freebsd-questions
|
--
mark saad | ***@longcount.org
Mehmet Erol Sanliturk
2018-06-20 18:34:05 UTC
Permalink
Post by Mark Saad
Igor
That did not work, the resulting kernel was still a GENERIC . For a
work around
I am just going to tar up /boot/kernel into my own kernel.txz. This is
on 11.2-SATBLE/PRERELEASE
On Wed, Jun 20, 2018 at 9:08 AM, Igor V. Ruzanov
Post by Igor V. Ruzanov
|Hi all
| I can’t remember and I havent been able to find the right option to
make a release with a custom kernel config .
Post by Igor V. Ruzanov
|
|I did
|make buildworld
|make buildkernel KERNCONF=SUPERDOOPER
I usually run `make installkernel KERNCONF=SUPERDOOPER`, then reboot and
`make installworld` after kernel building step.
|cd release
|make release KERNEL=SUPERDOOPER
|make install DESTDIR=/export/build/sd
|
|The resulting kernel was a generic not my custom . What am I forgetting?
|
|---
|_______________________________________________
|https://lists.freebsd.org/mailman/listinfo/freebsd-questions
|To unsubscribe, send any mail to "freebsd-questions-
|
--
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-
There is FreeBSD Handbook chapter :

https://www.freebsd.org/doc/handbook/book.html#kernelconfig-building


8.2. Why Build a Custom Kernel?
8.3. Finding the System Hardware
8.4. The Configuration File
8.5. Building and Installing a Custom Kernel



If you search a phrase like the following

freebsd make custom iso image


in the Google , you may find some useful links .



FreeBSD SVN contains directories about how to generate a release ISO .



There is a manual page :


https://www.freebsd.org/cgi/man.cgi?release(7)

*release* -- release building infrastructure




Mehmet Erol Sanliturk
Polytropon
2018-06-20 18:47:40 UTC
Permalink
Post by Mark Saad
Igor
That did not work, the resulting kernel was still a GENERIC . For a
work around
I am just going to tar up /boot/kernel into my own kernel.txz. This is
on 11.2-SATBLE/PRERELEASE
From what I understood from the Makefiles, "make release" will
always build with the GENERIC kernel configuration. There are
basically two possibilities:

a) overwrite GENERIC with your own configuration, or

b) previously run "make buildkernel KERNCONF=<name>", tar the
result from /usr/obj, then build the release, and finally
replace its GENERIC objects with your own ones.

See "man 7 release" for details.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
Loading...