2024년 11월 4일 월요일

새로운 시작을 위한 준비


이곳을 너무 소홀히 대한 것 같다.

이상과 현실의 차이를 인정하지 못한 채 제법 긴 방황의 시간이 흘러간 듯 하다.


생각을 정리하고, 다시 시작!! 

2020년 12월 22일 화요일

Dbus / Session bus error

새 프로젝트에 DBus / session bus 연동으로 몇일을 고생한 듯 하다.


init process 또는 console에서 동작시킨 process에서는 문제가 없는데,

system 권한을 가진 process는 아래와 같은 [Error Log] 발생.

  • system bus와 session bus는 모두 init process에서 동작시켰으니 root 권한.
  • system bus 통신을 위한 socket device는 root:system ownership을 가져서 OK
  • session bus 에서만 문제가 발생.

[ Error Log ]

Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


session bus를 사용하는 방법이 일반적이지 않은걸까?


자료를 찾다 보니 config option 중에 <allow_anonymous>가 있다.

configuration파일 (session.conf) 에 <allow_anonymous /> 추가하니 문제는 해결이 된다.

하지만, anonymous 에서 좀 걸린다.


dbus-daemon configuration file에 대한 내용을 찾아보니. 역시나 위험성에 대해 경고하고 있다. ( https://dbus.freedesktop.org/doc/dbus-daemon.1.html )

  • <allow_anonymous>

If present, connections that authenticated using the ANONYMOUS mechanism will be authorized to connect. This option has no practical effect unless the ANONYMOUS mechanism has also been enabled using the <auth> element, described below.

Using this directive in the configuration of the well-known system bus or the well-known session bus will make that bus insecure and should never be done. Similarly, on custom bus types, using this directive will usually make the custom bus insecure, unless its configuration has been specifically designed to prevent anonymous users from causing damage or escalating privileges.


보안과 안정성 관련된 내용은 추가 검토 필요!!

2020년 12월 8일 화요일

Ubuntu - GPG error ( NO_PUBKEY )

Ubuntu 14.04 LTS + Jenkins 운영 중 발생한 GPG error 발생에 대한 처리.


Jenkins Server 설치 후 마음먹고 version update 시도 했으나, error message 부터 만났다.

[ Error case ]

$ sudo apt-get update

.....

W: GPG error: https://pkg.jenkins.io binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FCEF32E745F2C3D5


[ Resolve ]

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCEF32E745F2C3D5

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.FjsBEAHsJi --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys FCEF32E745F2C3D5

gpg: requesting key 45F2C3D5 from hkp server keyserver.ubuntu.com

gpg: key 45F2C3D5: public key "Jenkins Project <jenkinsci-board@googlegroups.com>" imported

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)


$ sudo apt-get update

.....

Fetched 833 B in 20s (41 B/s)                                                  

Reading package lists... Done


Error case는 간단한 명령어 한줄로 해결되었으니.. 

명령어의 의미가 궁금해졌다. 

--------------------------------------------

$ apt-key -help









"apt-key는 apt가 패키지를 인증하는데 사용하는 키 리스트를 관리하는데 사용하는 유틸" 이라고 설명하고 있다. (http://manpages.ubuntu.com/manpages/bionic/man8/apt-key.8.html)

그럼 apt는?? (평소에 아무런 의심없이 사용해왔던 명령어(?기능) 들에 대한 정의를 모르고 있었다. 반성하자..ㅜ.ㅜ )

apt는 패키지 관리를 위한 high-level command line 인터페이스라고 정의가 되어 있다.

(http://manpages.ubuntu.com/manpages/hirsute/en/man8/apt.8.html)


처음으로 돌아가서.. 명령어에 대한 의미에 대한 정리를 해보자.

"sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [Key]"

"gpg(GunPG, the GNU Privacy Guard)명령을 통해 keyserver.ubuntu.com에서 [Key] 에 대한 public key를 apt가 패키지를 인증하는데 사용하는 key list에서 추가한다." 의 의미가 된다.



ubuntu man page에는 --keyserver option 이 나오지 않는다.

gnupg.org(https://www.gnupg.org/documentation/manuals/gnupg/GPG-Configuration-Options.html) GPG Opitons page 에 deprecated 되었다고 나온다. ( 옵션 리스트에 나오지 않는 이유가 있었다.)

dirmngr.conf 사용에 대한 방법은 다시 정리를 해 봐야겠다.

--keyserver name

This option is deprecated - please use the --keyserver in dirmngr.conf instead.

Use name as your keyserver. This is the server that --receive-keys, --send-keys, and --search-keys will communicate with to receive keys from, send keys to, and search for keys on. The format of the name is a URI: ‘scheme:[//]keyservername[:port]’ The scheme is the type of keyserver: "hkp" for the HTTP (or compatible) keyservers, "ldap" for the LDAP keyservers, or "mailto" for the Graff email keyserver. Note that your particular installation of GnuPG may have other keyserver types available as well. Keyserver schemes are case-insensitive. After the keyserver name, optional keyserver configuration options may be provided. These are the same as the global --keyserver-options from below, but apply only to this particular keyserver.


[Android] SELinux on Android

Android SELinux policy 작성


프로젝트 수행 중 SELinux policy 작성을 위해 진행한 수행사항에 대해 기록한다.

[ SELinux 설정 상태  확인 ]

$ adb shell getenforce

bootcmd에 아래와 같이 selinux=permissive 상태인 경우, 정의되지 않은 정책은 실행이 거부된다.
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 androidboot.selinux=permissive ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabl
    ed=1 earlyprintk


[ selinux error/warning log 확보하기 ]

 $ adb shell su 0 cat /proc/kmsg > dmesg.txt
ex)
[   18.755615] init: avc:  denied  { set } for property=ro.radio.noril pid=517 uid=0 gid=0 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1


[ audit2allow tool을 통해 policy 생성 ]

 $ audit2allow -p out/target/product/device/root/sepolicy < dmesg.txt

정상적으로 수행된다면 아래와 같은 추가되어야 할 policy 가 출력된다.
ex)
#============= audioserver ==============
allow audioserver audio_prop:property_service set;
allow audioserver bootanim:binder call;
allow audioserver rootfs:lnk_file getattr;

[ audit2allow 수행 Error case ]

==> audit2allow 명령어는 android build system ( source ./build/envsetup.sh && ㅣlunch <product_name>-<build_variant> 실행) 로딩 후 사용해야 한다. 

3.1. libsepol.policydb_read: policydb version 30 does not match my version range 15-29
=> Android prebuilt util을 사용해야 한다.

3.2.
libsepol.context_from_record: user u is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
=> android build system 환경에서 실행해야 한다.
$ cd [Android Top Dir]
$ source ./build/envsetup.sh
$ lunch
$ which audit2allow
[Android Build Top]/external/selinux/prebuilts/bin/audit2allow

wschoi@flabIot-ubuntu:~/work/qct/apq8009-la-2-0-2/LINUX/android/external/selinux/prebuilts/bin$ vi audit2allow
  1 #!/bin/sh
  2
  3 unamestr=`uname`
  4 if [ "$unamestr" = "Linux" -o "$unamestr" = "linux" ]; then
  5     export LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/external/selinux/prebuilts/lib
  6     export PYTHONPATH=$ANDROID_BUILD_TOP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages
  7     python $ANDROID_BUILD_TOP/external/selinux/policycoreutils/audit2allow/audit2allow "$@"
  8 else
  9     echo "audit2allow is only supported on linux"
 10 fi

#########################################################

수정사항

#########################################################

#============= audioserver ==============
allow audioserver audio_prop:property_service set;
allow audioserver bootanim:binder call;
allow audioserver rootfs:lnk_file getattr;

#============= bootanim ==============
allow bootanim rootfs:lnk_file getattr;

#============= bootstat ==============
allow bootstat rootfs:lnk_file getattr;


#============= cameraserver ==============
allow cameraserver rootfs:lnk_file getattr;

#============= init ==============
allow init sdcardd_exec:file getattr;

#============= location ==============
allow location self:capability net_raw;

#============= mediacodec ==============
allow mediacodec rootfs:lnk_file getattr;

#============= mediadrmserver ==============
allow mediadrmserver rootfs:lnk_file getattr;


#============= perfd ==============
# allow perfd self:capability sys_ptrace;

libsepol.report_failure: neverallow on line 162 of system/sepolicy/domain.te (or line 9034 of policy.conf) violated by allow perfd perfd:capability { sys_ptrace };
libsepol.check_assertions: 1 neverallow failures occurred



#============= qti_init_shell ==============
allow qti_init_shell btnvtool_exec:file { execute execute_no_trans getattr open read };
allow qti_init_shell console_device:chr_file { getattr ioctl read write };
allow qti_init_shell ctl_default_prop:property_service set;
# allow qti_init_shell default_prop:property_service set;
allow qti_init_shell shell_prop:property_service set;
allow qti_init_shell sysfs_rqstats:dir { open read search };

#============= radio ==============
allow radio system_app_data_file:dir getattr;

#============= untrusted_app ==============
allow untrusted_app sysfs:file { getattr open read };

#============= wcnss_service ==============
allow wcnss_service self:capability { chown setgid setuid };


#============= healthd ==============
allow healthd device:dir { open read };


#############################################
# non permissive
#############################################
#============= bluetooth ==============
allow bluetooth storage_stub_file:dir getattr;

#============= perfd ==============
allow perfd self:capability sys_ptrace;

#============= priv_app ==============
allow priv_app device:dir read;
allow priv_app device:dir open;
allow priv_app self:udp_socket ioctl;

#============= shell ==============
allow shell cmxservices_prop:file read;
allow shell ctl_default_prop:property_service set;

#============= system_server ==============
allow system_server cmxservices_prop:file read;
allow system_server cmxservices_prop:file open;


#============= perfd ==============
allow perfd self:capability sys_ptrace;

#============= priv_app ==============
allow priv_app self:udp_socket ioctl;

#============= system_server ==============
allow system_server cmxservices_prop:file getattr;

2020년 1월 10일 금요일

[Kernel] ubuntu - mkimage tool 설치

Android 빌드 시 u-boot image 생성을 위한 tool 설치방법

OS : Ubuntu 14.04.5 LTS

Command
$ sudo apt-get install u-boot-mkimage

Error Message
"mkimage" command not found - U-Boot images will not be built
make[1]: *** [arch/arm/boot/uImage] Error 1
make: *** [uImage] Error 2
ERROR: build kernel Failed


2019년 4월 15일 월요일

매일프로그래밍 - 코딩테스트 문제 30

매일프로그래밍 - 코딩테스트 문제 30

Given an integer, count number of 1s in binary representation of an integer.

시간 복잡도: O(log n)

input: 6 // 110
output: 2

input: 13 // 1101
output: 3

----------------------------------------------------------------------------

  1 #include <stdio.h>
  2 #include <string.h>
  3 #include <stdlib.h>
  4
  5 void getCount(int input)
  6 {
  7     int count = 0;
  8
  9     fprintf(stdout, "input[%5d]\t[0x%04x]\t", input, input);
 10     while (input > 0) {
 11         if ( (input % 2) == 1 )
 12             count++;
 13         input = input/2 ;
 14     }
 15     fprintf(stdout, "Count[%d]\n",count);
 16 }
 17
 18 int main(int argc, char** argv)
 19 {
 20 #ifdef __TBD__
 21     int loopCnt = 0;
 22
 23     for (loopCnt = 1; loopCnt < argc; loopCnt++) {
 24         getCount(atoi(argv[loopCnt]));
 25     }
 26 #else
 27
 28     while (argc > 1) {
 29         *argv++;
 30         argc--;
 31         getCount(atoi(*argv));
 32     }
 33 #endif
 34
 35     return 0;
 36 }


2019년 3월 28일 목요일

[TIP] Source Insight 3.x 한글(utf-8)주석처리

Source Insight 사용 시 한글 주석이 깨져 보이는 경우에 대한 처리방법에 대해 기술합니다.
( Ref : https://embeddedaroma.tistory.com/31 )

아래 경로에서 파일을 다운로드 받은 후,
- http://www.cnblogs.com/Red_angelX/p/3713935.htm 
source insight 가 설치되어 있는 경로 (ex. C:\Program Files (x86)\Source Insight 3)에 압축해제하여 적용합니다.


압축해제 파일 중 siutf8.dll 만 적용해도 한글깨지는 현상은 개선이 됩니다.
- sihook.dll 파일을 적용하면 상단 파일탭에 추가로 오픈된 파일리스트가 나와서 적용하지 않음. (개인적인 취향에 맞지 않으므로... :) )


2019년 3월 25일 월요일

Google+ 자료 백업을 완료하며...

2014년 부터 사용해 왔던 google+ 서비스 종료로 인해 과거의 글들을 모두 Blogger로 옮겨왔다.

"기술관련 검색의 기록과 관심사들의 변화를 다시 돌아보는 기회가 되는 것 같다" 라는 말로 애써 위안을 삼아본다.

사라져 버린 링크, 기록을 하다가 마무리 하지 못하고 남겨둔 글들...

오랜 흔적들을 다시 정리했으니 새로운 내용들로 채워보자~!!!

[Kernel] CONFIG_USB_CDC_PHONET

Kernel   CONFIG_USB_CDC_PHONET: CDC Phonet support


General informations
- The Linux kernel configuration item CONFIG_USB_CDC_PHONET:

* prompt: CDC Phonet support
* type: tristate
* depends on: CONFIG_PHONET
* defined in drivers/net/usb/Kconfig
* found in Linux kernels: 2.6.31–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: cdc-phonet

* Help text : Choose this option to support the Phonet interface to a Nokia cellular modem, as found on most Nokia handsets with the "PC suite" USB profile.

- https://cateee.net/lkddb/web-lkddb/USB_CDC_PHONET.html

[Kernel] usb 3G USB Dongle 사용을 위한 kernel configs

Kernel   #usb  3G USB Dongle bug fix


1. Bug  : "unable to enumerate USB device on port "
2. Resolve : enable below kernel configs
+ CONFIG_USB_ARCH_HAS_EHCI=y
+ CONFIG_USB_ACM=y
+ CONFIG_USB_SERIAL_QUALCOMM=y

[Kernel] CONFIG_USB_HWA_HCD

Kernel   - CONFIG_USB_HWA_HCD

Host Wire Adapter (HWA) driver (EXPERIMENTAL) found in drivers/usb/host/Kconfig

The configuration item CONFIG_USB_HWA_HCD:

* prompt: Host Wire Adapter (HWA) driver (EXPERIMENTAL)
* type: tristate
* depends on: ( CONFIG_EXPERIMENTAL ) && ( CONFIG_USB && CONFIG_UWB )
* defined in drivers/usb/host/Kconfig
* found in Linux kernels: 2.6.28–2.6.39, 3.0–3.6
* modules built: wusb-wa
* Help text
 - This driver enables you to connect Wireless USB devices to your system using a Host Wire Adaptor USB dongle. This is an UWB Radio Controller and WUSB Host Controller connected to your machine via USB (specified in WUSB1.0).

To compile this driver a module, choose M here: the module will be called "hwa-hc".

- https://cateee.net/lkddb/web-lkddb/USB_HWA_HCD.html

[Kenrel] CONFIG_USB_EHCI_HCD

Kenrel   - CONFIG_USB_EHCI_HCD

General informations

The Linux kernel configuration item CONFIG_USB_EHCI_HCD:

* prompt: EHCI HCD (USB 2.0) support
* type: tristate
* depends on: (none)
* defined in drivers/usb/host/Kconfig
* found in Linux kernels: 2.6.0–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: ehci-hcd
* Help text
 - The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware. If your USB host controller supports USB 2.0, you will likely want to configure this Host Controller Driver.

EHCI controllers are packaged with "companion" host controllers (OHCI or UHCI) to handle USB 1.1 devices connected to root hub ports. Ports will connect to EHCI if the device is high speed, otherwise they connect to a companion controller. If you configure EHCI, you should probably configure the OHCI (for NEC and some other vendors) USB Host Controller Driver or UHCI (for Via motherboards) Host Controller Driver too.

You may want to read Documentation/usb/ehci.txt.

To compile this driver as a module, choose M here: the module will be called ehci-hcd.

[Kernel] CONFIG_USB_SERIAL_QUALCOMM

kernel - CONFIG_USB_SERIAL_QUALCOMM: USB Qualcomm Serial modem


General informations

The Linux kernel configuration item CONFIG_USB_SERIAL_QUALCOMM:

* prompt: USB Qualcomm Serial modem
* type: tristate
* depends on: (none)
* defined in drivers/usb/serial/Kconfig
* found in Linux kernels: 2.6.30–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: qcserial
* Help text
 - Say Y here if you have a Qualcomm USB modem device. These are usually wireless cellular modems.
To compile this driver as a module, choose M here: the module will be called qcserial.

- https://cateee.net/lkddb/web-lkddb/USB_SERIAL_QUALCOMM.html

[Kernel] CONFIG_USB_NET_CDC_NCM

Kernel - CONFIG_USB_NET_CDC_NCM: CDC NCM support


General informations
The Linux kernel configuration item CONFIG_USB_NET_CDC_NCM:

* prompt: CDC NCM support
* type: tristate
* depends on: CONFIG_USB_USBNET
* defined in drivers/net/usb/Kconfig
* found in Linux kernels: 2.6.38–2.6.39, 3.0–3.16, 3.17-rc+HEAD
modules built: cdc_ncm

Help text
* This driver provides support for CDC NCM (Network Control Model Device USB Class Specification). The CDC NCM specification is available from http://www.usb.org/.

Say "y" to link the driver statically, or "m" to build a dynamically linked module.

This driver should work with at least the following devices: * ST-Ericsson M700 LTE FDD/TDD Mobile Broadband Modem (ref. design) * ST-Ericsson M5730 HSPA+ Mobile Broadband Modem (reference design) * ST-Ericsson M570 HSPA+ Mobile Broadband Modem (reference design) * ST-Ericsson M343 HSPA Mobile Broadband Modem (reference design) * Ericsson F5521gw Mobile Broadband Module

Apple Airplay 관련 링크

Apple Airplay 관련 링크


Apple AirPlay 간략히 알아보기

- https://sannhan.wordpress.com/2011/03/28/apple-airplay-at-a-glance/

Unofficial AirPlay Protocol Specification

- http://nto.github.io/AirPlay.html

A collection of libraries for Apple's AirPlay protocol

- https://github.com/jamesdlow/open-airplay

오토모티브 용어(CKD and SDK )

오토모티브 용어(CKD and SDK )


CKD

- Completely Knock down의 약어
- 해체할 수 있는데까지 해체를 하고 수송하는 방법
- 수송된 부붐은 목적지에서 조립에 되어 완성품으로 변신
- CDK (Car Knock Down)으로 사용되기도 한다.

SDK

- Semi Knock Down down의 약어
- CKD보다는 조금 더 조립된 형태의 반제품 형태로 수송된다.

[Kernel] System Reboot from device driver - programmable

System Reboot from device driver - programmable


#include <linux/reboot.h>
#ifdef CONFIG_MACH_RK3066_R306
        kernel_restart(LINUX_REBOOT_CMD_RESTART);
#endif

[ path : kernel/include/linux/reboot.h ]
 15 /*
 16  * Commands accepted by the _reboot() system call.
 17  *
 18  * RESTART     Restart system using default command and mode.
 19  * HALT        Stop OS and give system control to ROM monitor, if any.
 20  * CAD_ON      Ctrl-Alt-Del sequence causes RESTART command.
 21  * CAD_OFF     Ctrl-Alt-Del sequence sends SIGINT to init task.
 22  * POWER_OFF   Stop OS and remove all power from system, if possible.
 23  * RESTART2    Restart system using given command string.
 24  * SW_SUSPEND  Suspend system using software suspend if compiled in.
 25  * KEXEC       Restart system using a previously loaded Linux kernel
 26  */
 27
 28  #define  LINUX_REBOOT_CMD_RESTART    0x01234567
 29  #define  LINUX_REBOOT_CMD_HALT       0xCDEF0123
 30  #define  LINUX_REBOOT_CMD_CAD_ON     0x89ABCDEF
 31  #define  LINUX_REBOOT_CMD_CAD_OFF    0x00000000
 32  #define  LINUX_REBOOT_CMD_POWER_OFF  0x4321FEDC
 33  #define  LINUX_REBOOT_CMD_RESTART2   0xA1B2C3D4
 34  #define  LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2
 35  #define  LINUX_REBOOT_CMD_KEXEC      0x45584543

[ path : kernel/kernel/sys.c ]
 338 /**
 339  *  kernel_restart - reboot the system
 340  *  @cmd: pointer to buffer containing command to execute for restart
 341  *      or %NULL
 342  *
 343  *  Shutdown everything and perform a clean reboot.
 344  *  This is not safe to call in interrupt context.
 345  */
 346 void kernel_restart(char *cmd)
 347 {
 348     /*
 349     *  debug trace
 350     */
 351     restart_dbg("%s->%d->cmd=%s",__FUNCTION__,__LINE__,cmd);
 352
 353     kernel_restart_prepare(cmd);
 354     disable_nonboot_cpus();
 355     if (!cmd)
 356         printk(KERN_EMERG "Restarting system.\n");
 357     else
 358         printk(KERN_EMERG "Restarting system with command '%s'.\n", cmd);
 359     kmsg_dump(KMSG_DUMP_RESTART);
 360     machine_restart(cmd);
 361 }
 362 EXPORT_SYMBOL_GPL(kernel_restart);

[Java] SHA-1 암호화 - MessageDigest Class

JAVA  SHA-1 암호화 - MessageDigest Class


public String sha1(String s) {
    try {
        // Create MD5 Hash
        MessageDigest digest = MessageDigest.getInstance("SHA-1");
        digest.update(s.getBytes());
        byte messageDigest[] = digest.digest();

        // Create Hex String
        StringBuffer hexString = new StringBuffer();
        for (int i = 0; i < messageDigest.length; i++)
            hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
        return hexString.toString();

    } catch (NoSuchAlgorithmException e) {
        e.printStackTrace();
    }
    return "";
}

PC용 Power Supply 전선의 Color를 통한 Voltage 구분

PC용 Power Supply 전선의 Color를 통한 Voltage 구분


ref from : http://kkomp.com/wp-content/uploads/2009/04/screenhunter-01apr092208.gif




[Kernel] make menuconfig command error


Kernel / make menuconfig error 발생에 대한 처리사항


OS : ubuntun 12.04 LTS

Resolve 
$ sudo apt-get install lib32ncurses5-dev

Error Log
$ make menuconfig [enter]
scripts/kconfig/lxdialog/menubox.o: In function `do_scroll':
menubox.c:(.text+0x55): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_arrows':
menubox.c:(.text+0x1a4): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
menubox.c:(.text+0x3a9): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
menubox.c:(.text+0x4b1): undefined reference to `wrefresh'
collect2: ld returned 1 exit status
make[1]: * [scripts/kconfig/mconf] Error 1
make: * [menuconfig] Error 2