Skip to content

Instantly share code, notes, and snippets.

View Gnurou's full-sized avatar

Alexandre Courbot Gnurou

View GitHub Profile
@Gnurou
Gnurou / kdev_kernel.py
Last active January 24, 2019 14:06
Convert Linux kernel config into Kdevelop macro defines
#!/usr/bin/env python3
import sys
import os
import re
r = re.compile('\#define (\w+) (.+)')
f = open(os.path.join(sys.argv[1], 'include/generated/autoconf.h'))